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

Re: post.c too slow due to select() sleeping in event loop - what to do?

From: James Avery <avery@wapmore.com>
Date: Tue, 12 Mar 2002 17:54:22 +0100 (CET)
To: "Wells, Charles" <cwells@rational.com>
cc: "'www-lib@w3.org'" <www-lib@w3.org>
Message-ID: <Pine.LNX.4.32.0203121733270.27584-100000@mail.wapmore.com>
On Mon, 11 Mar 2002, Wells, Charles wrote:

> The example "post.c" is taking way to long to execute (at least on Unix
> anyway).  I sort of know the reason for this, but not the best solution.

For some reason, this is by design (search for 'Write Delay' in HTTP.h).
You can change the amount of time HTPostAnchor waits after writing the
header before posting, by setting

  HTTP_setBodyWriteDelay(ms_t first_try, ms_t second_try)

I usually use (250,500). The defaults are (2000ms,3000ms), which is enough
to just make you crazy.

-- 
  Med venlig hilsen,
    James Avery <avery@wapmore.com>
Received on Tuesday, 12 March 2002 11:52:17 GMT

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