httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allan Edwards" <>
Subject default timeout values
Date Tue, 20 Jun 2000 17:23:18 GMT
Anyone know what the reason was for upping the
values of DEFAULT_KEEPALIVE_TIMEOUT from 15 to 
300 and DEFAULT_TIMEOUT from 300 to 120000 in 
httpd.h last August? I couldn't find any discussion 
in the new-httpd archives. If this is intentional 
then the docs need updating.

Incidentally, this DEFAULT_TIMEOUT causes unix_setopt()
(win32_setopt)to overflow the value of 'ap_int32_t on' 
that is passed to ap_setsocketopt when setting timeout. 
To fix, either:

a) use ap_setsocketopt( ap_socket_t *sock, 
                        ap_int32_t opt, 
                        ap_int64_t on);

b) pass the value in seconds rather that microseconds. 

I think I prefer b)



View raw message