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

HTHost_addNet, HTHost_decreaseRetry, HTHost_deleteNet, HTList_removeObjectAll, HTLoadWAIS

From: QingLong <qinglong@Yggdrasil.com>
Date: Mon, 9 Mar 1998 17:59:54 -0500 (EST)
Message-Id: <199803092259.OAA31238@freya.yggdrasil.com>
To: www-lib@w3.org
Cc: frystyk@w3.org (Henrik Frystyk Nielsen)

	Dear W3C WWW Reference Library Developers, Testers, Users.

   The attached is gzip'ed patch against w3c-libwww-5.1i that cures (I hope)
 some of the library problems:

   HTHost.c
   ~~~~~~~~
      HTHost_decreaseRetry()
         The bug is obviously a fatal typo.
         It has already been pointed out here by
         John Nunneley <johnn@dascom.com> more than half a year ago,
         but the bug is still there. :(

      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.

   HTWAIS.c
   ~~~~~~~~
         Don't know if anybody get managed to compile and use WAIS module
         in libwww-5.1i, I have failed totally.
         So I've tried to hack it and make it work.
         I have already submitted the patch (adapted to 5.0a) earlier.
         Don't know neither if it has libwww architecture coding style,
         nor if it is actually correct, BUT know that it WORKS for me.
         The main strucrture has been borrowed from HTTP.c.

   HTEscape.c
   ~~~~~~~~~~
      from_hex()
         The WAIS module needs this function, so make it public.

   HTList.c
   ~~~~~~~~
      HTList_removeObjectAll()
         The original function is unusable:
         while object removal it first frees HTList element,
         then tries to use it's contents (in `while(me->next)') causing,
         of course, segmentation violation.

   Thank you.

--
      QingLong                  Yggdrasil Computing, Incorporated
   +1 408 261-6630             "Free Software For The Rest of US."


Received on Monday, 9 March 1998 18:10:15 GMT

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