httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@covalent.net
Subject Re: default timeout values
Date Tue, 20 Jun 2000 17:43:39 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.

We changed from seconds to microseconds.  The math seems really screwy to
me though.  

> 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. 

Everything is done in microseconds now.  IMNSHO, the proper approach is
to use a.

Ryan

_______________________________________________________________________________
Ryan Bloom                        	rbb@apache.org
406 29th St.
San Francisco, CA 94131
-------------------------------------------------------------------------------



Mime
View raw message