Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 58912 invoked from network); 21 May 2004 16:30:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 21 May 2004 16:30:18 -0000 Received: (qmail 78687 invoked by uid 500); 21 May 2004 16:30:29 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 78609 invoked by uid 500); 21 May 2004 16:30:28 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 78593 invoked by uid 98); 21 May 2004 16:30:28 -0000 X-Qmail-Scanner-Mail-From: minfrin@sharp.fm via hermes.apache.org X-Qmail-Scanner: 1.20 (Clear:RC:0(196.30.143.210):. Processed in 0.997992 secs) Message-ID: <40AE2E86.3040206@sharp.fm> Date: Fri, 21 May 2004 18:29:58 +0200 From: Graham Leggett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7b) Gecko/20040514 X-Accept-Language: en-za, en-us, en MIME-Version: 1.0 To: dev@apr.apache.org Subject: Applying timeouts to pool cleanups, possible? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at fma.co.za X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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 --