apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
Subject Applying timeouts to pool cleanups, possible?
Date Fri, 21 May 2004 16:29:58 GMT
Hi all,

The mod_ldap module in httpd provides an LDAP connection pool. When 
connections are created, they are registered with apr pools as a cleanup 
when the pool is reclaimed, which in our case only happens on a graceful 
server restart.

On Solaris, this leaves many long lived connections held open in the 
CLOSE_WAIT state, as the server timed out, but httpd's LDAP connection 
pool didn't notice.

Is there an apr function that could be used to put a time limit on a 
pool cleanup, in other words "run this cleanup after X minutes"? It 
would be up to the cleanup to decide whether timing out the connection 
would be appropriate.


View raw message