httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <>
Subject Re: Apache module avoiding re-initialization of connection pool in every worker process
Date Tue, 31 Dec 2013 15:37:34 GMT
On Tue, Dec 31, 2013 at 3:52 AM, ksakhare <> wrote:
> Hi All
> I am building apache module, which maintains the connection pool with
> back-end server. As in prefork mode only one connection pool is created as
> their is only one worker process exist.
> Now I need to port this module on worker mpm, because there are multiple
> worker process, multiple connection pools are getting created.
> How can i initialization connection in once and use these connections across
> the different worker process. Thanks in advacne.

You can keep doing it once per process and share across threads.  If
you don't manage them very smartly today, maybe apr_reslist would help
in the multithreaded case.

View raw message