Return-Path: X-Original-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D0B7110F9F for ; Thu, 6 Jun 2013 22:16:29 +0000 (UTC) Received: (qmail 21800 invoked by uid 500); 6 Jun 2013 22:16:29 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 21770 invoked by uid 500); 6 Jun 2013 22:16:29 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 21762 invoked by uid 99); 6 Jun 2013 22:16:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jun 2013 22:16:29 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jlewis@silverhawk.net designates 209.85.160.51 as permitted sender) Received: from [209.85.160.51] (HELO mail-pb0-f51.google.com) (209.85.160.51) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jun 2013 22:16:23 +0000 Received: by mail-pb0-f51.google.com with SMTP id um15so3852671pbc.10 for ; Thu, 06 Jun 2013 15:16:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=pL6j+DwW4gqw1TDLNOfPLPWv2oOaRDuJSU/BaRHs1Q4=; b=N0Hf2cq39cp2W6CO5li4PkfErMVAvWcSEkKwJg43D2mV8oP+T4EGjrsa2dy86sNVOg JK8PQcw9ESr79QG0KHdNUp8oUZMa/DKT88t5B+uH24ihQm/oRo3YV5KDgntiPpjLiVi3 AyWz2iM+tejV+DQFuoQFami7IsWRfu9GiF+4Bf+uE+UZIgWo4cgJFweThDnGekoFeOtQ qDhxXvxFPIkW/8E0Dr81qr7cx6emngIohoTG4hYN6JFh6LQt3whd2mLK0l/aP+1sJrln aflXbfh+7p0k8BytT9OY4UKpUczgnEdzHg2FvrSznoSUSQ9+KJiE4vvyms3wlgvqxtLA sA2g== X-Received: by 10.66.25.10 with SMTP id y10mr27598141paf.96.1370556963200; Thu, 06 Jun 2013 15:16:03 -0700 (PDT) Received: from aconite.overstock.com ([65.116.116.6]) by mx.google.com with ESMTPSA id nt6sm46015473pbb.4.2013.06.06.15.16.02 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 06 Jun 2013 15:16:02 -0700 (PDT) Sender: Joe Lewis Message-ID: <51B10A21.3010107@joe-lewis.com> Date: Thu, 06 Jun 2013 16:16:01 -0600 From: Joe Lewis User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.3 MIME-Version: 1.0 To: modules-dev@httpd.apache.org Subject: Re: Tear down of module on server stop References: <51B0FC25.8070308@joe-lewis.com> <51B108F4.5050409@joe-lewis.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQkm0Dn0CZRMsmd/Opse3kC7Sj0QVv7Tywzey+pG0JUQ2SFT6H4BH2aTz3BGu+VTmRxIUruE X-Virus-Checked: Checked by ClamAV on apache.org On 06/06/2013 04:13 PM, Sean Beck wrote: > So in the post_config hook I set up the connections then register a clean > up function to terminate the connections? Yes. It's the one place that, if you are calling apr_palloc/etc, you have the direct pool that will be called when things do get cleaned up for what is in the pool, and immediately before the memory is freed up on a graceful exit. Joe