Re: BUG: preemptive operation fails under libwww-5.1

At 06:06 PM 4/2/97, QingLong wrote:

>Conrad <conradh@harlequin.co.uk> wrote:
>>
>> Library: libwww-5.1
>> System: Solaris 2.5, sparc
>> ......
>> the library hangs in a read after retrieving uncached documents.
>>
>   Does it hang or go to a deadloop? Have you tried to trace debug it?

The problem was that the output buffer wasn't explicitly flushed which
caused the request newer to be written to the socket. In non-preemptive
mode, there is a timeout forcing a flush after 50 ms but that doesn't
happen when using blocking sockets.

Also, you need to disable the persistent cache when using blocking sockets
- otherwise you run into trouble.

I have included a patch below.

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

Received on Wednesday, 2 April 1997 13:23:45 UTC