Patch for: HTHost_addNet, HTHost_deleteNet

>      HTHost_addNet()
>         I have successfully used libwww-5.0a with non-blocking sockets
>         (in the context of Arena browser), but failed with 5.1i.
>         The library began looping on inline documents (images).
>         Been investigated it turned out that it was spawning multiple
>         copies of the same net objects and adding them to `pending' list,
>         while the `pipeline' was occupied by the net object associated with
>         the main document, that actually has already been loaded
>         (but it's net object has not been deleted from pipeline).
>         I don't know what does cause that `pipeline jam',
>         is it error in libwww or in the application (Arena browser).
>         Anyway (I guess) the same net objects should not be added
>         mutiple times to either queue (`pending' or `pipeline' list),
>         so add check to the function whether the object is already
>         on either of the lists.
>         With the patch the browser appears to work well.

The problem was that libwww couldn't handle multiple requests when they
arrived before the TCP connection was established.

I have made a quick hack that should fix the problem as far as I can tell
from here. If you would please try it out so that we can be sure.

The patch is for three files

	HTTCP.c
	HTHost.c
	HTHstMan.h

As the HTHstMan.h is generated from HTHstMan.html, the patch is for the
html file and not the h file. If you do not have the line mode browser
(www) installed on your machine then you must apply the patch manually for
this file.

Henrik
--
Henrik Frystyk Nielsen,
World Wide Web Consortium
http://www.w3.org/People/Frystyk

Received on Thursday, 19 March 1998 19:52:46 UTC