Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 61019 invoked from network); 31 Oct 2007 20:51:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Oct 2007 20:51:55 -0000 Received: (qmail 18879 invoked by uid 500); 31 Oct 2007 20:42:21 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 18847 invoked by uid 500); 31 Oct 2007 20:42:21 -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 18834 invoked by uid 99); 31 Oct 2007 20:42:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Oct 2007 13:42:21 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [68.142.200.157] (HELO web30904.mail.mud.yahoo.com) (68.142.200.157) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 31 Oct 2007 20:42:24 +0000 Received: (qmail 67740 invoked by uid 60001); 31 Oct 2007 20:42:00 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=u1AEmRUcPSGE44CopssOdR8Hx5f4HQJNprMIEQVv7qxyP7AgNSaQRnShUKX2iDD30Bv9H0bgEAld28afIqgJL//O1VOS+G2qw6ugVlIQeWJ7bT/h/R/Vj3X1PrzBgcBhZR9XFhBQj47zLiwOnpGEwYgTLKg+1+EMKZwyIGGwzaA=; X-YMail-OSG: 668yH8kVM1nzV8l_IWx7pPIlfichgbqz7zH0Nk6SGat.T1CJhK9Mm48SQn_a..jTOMqHymE8Sb0F8Ed7Ljd42fi6g2RA Received: from [12.170.21.82] by web30904.mail.mud.yahoo.com via HTTP; Wed, 31 Oct 2007 13:41:59 PDT Date: Wed, 31 Oct 2007 13:41:59 -0700 (PDT) From: John Zhang Subject: Where is the right place to setup a connection pool? To: modules-dev@httpd.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <971970.66514.qm@web30904.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org I am writing a module talking to a remote server that handles the real work. I need to build/keep a pool of connections for reuse almong the different Apache worker threads. Should I build that in the ap_hook_post_config or ap_hook_child_init function? When apache creates multiple processes, will each process have its own copy of the connection pool automatically (taken care by apache) or I will have to do more work? Thanks in advance for any help. John