Added support for determining the write delay in HTTP PUT and POSTS

Description:

Because of the differences between HTTP/1.0 and HTTP/1.1, HTTP PUT and POST
requests can not be dealt with in non-preemptive mode - they have to use
timers and hence must be in preemptive mode.

The default write mechanism used is first to write the headers and then
wait for a period of time before writing the body. This often allows the
server to respond before we start sending data across the wire. If the
write for some reason fails in a bad way then we try again, waiting a
little bit longer this time as this may give the server enough time to think.

The default wait periods are 2000ms for the first wait and 3000ms if that
fails. These are rather conservative values but can be changed by using
these functions. The second try value must be larger (or equal) to the
first try value and the first try value must be larger than 20 ms.

Files affected:

	http://www.w3.org/Library/src/HTTP.c
	http://www.w3.org/Library/src/HTTP.html (and therefore HTTP.h)

Diffs:

http://dev.w3.org/cgi-bin/cvsweb/libwww/Library/src/HTTP.html?r1=2.38&r2=2.39
http://dev.w3.org/cgi-bin/cvsweb/libwww/Library/src/HTTP.c?r1=1.168&r2=1.169

How to get it:

   http://www.w3.org/Library/cvs.html#update

How to recompile:

   http://www.w3.org/Library/cvs.html#Easy

Henrik

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

Received on Thursday, 19 November 1998 12:47:46 UTC