W3C home > Mailing lists > Public > www-lib@w3.org > April to June 1999

[Fwd: LoadToFile demonstrates libwww bug?]

From: Henrik Frystyk Nielsen <frystyk@w3.org>
Date: Fri, 21 May 1999 09:26:30 -0400
Message-ID: <37455F06.880EA0F3@w3.org>
To: www-lib@w3.org

Forgot to cc the list...

-- 
Henrik Frystyk Nielsen, <frystyk@w3.org>
World Wide Web Consortium, MIT/LCS NE43-356
545 Technology Square, Cambridge MA 02139, USA

attached mail follows:


Michael Saunders wrote:

> I discovered that libwww gets stuck because it somehow gets through to
> the socket() call with a NULL pointer passed as the wait time. I also
> noticed that maxfds is zero. Is it possible that timers were cleaned
> up as a result of the target file name error which causes the socket
> to start blocking? Following is the output from the trace of the second
> attempt with the invalid base directory (I have substituted the real
> directory names with the ones shown above). Most of the interesting
> information is in the last five or six lines.
> 
> Does anyone know what is going wrong here (Henrik does this sound
> like a bug?)

Yes, you are right - I forgot to check the return code of HTLoadToFile
so it jumped into the event loop even though a request wasn't started.
This is fixed now, see

  
http://dev.w3.org/cgi-bin/cvsweb/libwww/Library/Examples/LoadToFile.c#rev1.6

-- 
Henrik Frystyk Nielsen, <frystyk@w3.org>
World Wide Web Consortium, MIT/LCS NE43-356
545 Technology Square, Cambridge MA 02139, USA
Received on Friday, 21 May 1999 09:26:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:29 GMT