W3C libwwwBugs

Known Bugs and Patches

As we now have made libwww available directly via CVS, it is much easier to get the latest updates and bug fixes. This means that we do not maintain this list very much anymore. Instead, you should look at the latest release notes to see if your problem has been addressed.

Please report new bugs or bug-fixes to <www-lib@w3.org> and describe what caused the bug to appear. The better diffs you can prepare, that is, if they are generated against the latest version in CVS, the faster they can be incorporated into the code base.

How to Apply a Patch

The provided patches are relative to the WWW directory in the distribution tree. In order to apply a patch, do the following in the WWW directory:

  1. Download the patch, for example lib-1.fix
  2. Invoke the patch command by typing
    	patch < lib-1.fix
    
  3. Rebuild the code by following the normal instructions for autoconf builds. In many cases you can simply type
    	make
    

    from the place where you have run the configure script.

Available Patches

Version 5.1m

Version 5.1j

Version 5.1d

Contribution from Rick Curry (not a patch)
A new version of HTWWWStr with a better date stamp string parser

Version 5.1b

Patch 1
A generic collection of patches fixing several bugs in libwww suggested by Hidekazu SHIOZAWA
Problems on FreeBSD
Gecse Roland pointed out these problems on FreeBSD

Version 5.0a

Bulding on SunOS: Sun uses the symbol "__STDC__" in their headers, not "STDC_HEADERS" which the configure script is looking for. This causes a problem compiling HTString.c which uses the ANSI definition of variable arguments. The fix is to define STDC_HEADERS when running configure. Depending on your shell, this may look like this

	BASH> CFLAGS='-g -Wall -DSTDC_HEADERS' ./configure
	CSH> env CFLAGS='-g -Wall -DSTDC_HEADERS' ./configure

Version 5.0

Patch 1
This patch fixes some minor problems in the library and example applications. If you have downloaded version 5.0a then you do not need this patch.

Version 4.0D

Library

New Multiple T stream (May 27 1996)
Sacha has provided this new module for handling Tee'ing of multiple simultanous streams. We have the  C file and the H file
Patch for better logging

Mini Server

Event Loop and Timeouts
The current implementation of the server has a problem with requests that timeout. That is, if the remote server is not capable of generating a response within the amount of time the server is willing to wait. The server is not capable of finding which request object timed out so it has to stop the search completely. This is a limitatation of the current implementation of the internal Event loop in the Library. It is not a design limitation, but the event loop is currently optimized for use by user active applications and not so much "non-user" application.
DNS lookup
The current DNS resolution uses the standard getXbyY system calls. However, as they traditionally are implemented using blocking sockets, the server may block as we only have a single process and a single stack. The solution is of course to have a non-blocking DNS resolver library.

Version 4.0C

Patch for PUT and POST
This patch is rather big but it contains some fixes and modifications that enables PUT and POST to work reliably. If you download the 4.0C version of the distribution then the patch has already been applied. It is basically the difference between versions 4.0B and 4.0C. The main set of differences are:

Library 4.0

Library 3.1

Bug in time stamp on files in FTP directory listings
The Library supports "long" directory listings for FTP Unix, VMS and Windows NT servers with file type, size, time and date etc. However, the time stamp is wrong by one hour for files created when daylight saving time is enabled. The reason is that the FTP module in the Library doesn't know the time-zone of the remote FTP server and hence doesn't know when DSR is enabled or disabled. This is fixed in the next version
Problem with nested HTML tags in the HTML parser
A bug which makes the HTML parser crash if is gets more than 20 nested HTML tags. Thanks to Robert M. Fleischman for pointing this out!

Library 3.0

Problems with redirection
Until now all HTTP servers have sent back a small HTML document with a redirection message going:
	If you can see this message then your browser
	does not support automatic redirection.

However, new severs like Netscape and other servers don't send this and hence no stream should be set up. This confuses the Library and it dumps core.


Henrik Frystyk Nielsen,
@(#) $Id: Overview.html,v 1.43 1998/08/04 17:23:30 frystyk Exp $