apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Querna <c...@force-elite.com>
Subject Re: Applying timeouts to pool cleanups, possible?
Date Fri, 21 May 2004 21:03:21 GMT
Sure sounds like it should be using apr_reslist.

On Fri, 2004-05-21 at 18:29 +0200, Graham Leggett wrote:
> 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.
> Regards,
> Graham
> --

View raw message