On Tue, Dec 31, 2013 at 3:52 AM, ksakhare <[email protected]> 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.
