Where is the right place to setup a connection pool?

2007-10-31 Thread John Zhang
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, wil

Re: Where is the right place to setup a connection pool?

2007-10-31 Thread Nick Kew
On Wed, 31 Oct 2007 13:41:59 -0700 (PDT) John Zhang <[EMAIL PROTECTED]> wrote: > Thanks in advance for any help. Use an apr_reslist to manage the pool. See mod_dbd for an example. -- Nick Kew Application Development with Apache - the Apache Modules Book http://www.apachetutor.org/

Re: Where is the right place to setup a connection pool?

2007-10-31 Thread Nick Kew
On Wed, 31 Oct 2007 13:41:59 -0700 (PDT) John Zhang <[EMAIL PROTECTED]> wrote: > 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. Further to my previous reply ... W