W3C home > Mailing lists > Public > www-lib@w3.org > January to March 1998

Patch for: HTHost_addNet, HTHost_deleteNet

From: Henrik Frystyk Nielsen <frystyk@w3.org>
Date: Thu, 19 Mar 1998 19:52:36 -0500
Message-Id: <3.0.5.32.19980319195236.04470100@localhost>
To: "QingLong" <qinglong@Yggdrasil.com>, www-lib@w3.org

>      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 GMT

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