|
From: Alain F. <ala...@ri...> - 2002-05-03 11:38:31
|
Hi,
I'm testing the latest htdig-3.2.0b4 snapshot (20020428).
I think that there is a problem with the htdig behavior and the
server_wait_time.
In Retreiver.cc:
---- cut here ----
// No HTTP connections available, so we change server and pause
if (max_connection_requests == 1)
server->delay(); // This will pause if needed
// and reset the time
---- cut here ----
You can see that htdig waits for server_wait_time only if
max_connection_requests equal to 1.
if max_connection_requests have a different value, htdig will never wait
server_wait_time timeout before to open a new HTTP connection to the
same web server.
Since htdig HTTP client supports the Persistent Connection mechanism, I
think the delay() function have to be called jut before this loop :
---- Retreiver.cc ----
// I think delay function have to be here
server->delay();
while ( ( (max_connection_requests ==-1) ||
(count < max_connection_requests) ) &&
(ref = server->pop()) && noSignal)
{
// stuff
...
}
---- Retreiver.cc ----
May be, I'm wrong and server_wait_time directive doesn't work with
persistent connection mechanism ...
Alain FORCIOLI http://www.VigiNews.com/
http://www.risc.fr/ ala...@ri...
http://www.april.org/ afo...@ap...
GPG Public Key: http://www.risc.fr/~af/gpg.txt
|