Re: Apache pre-forking

[prev] [thread] [next] [Date index for 2004/08/02]

From: Perrin Harkins
Subject: Re: Apache pre-forking
Date: 21:50 on 02 Aug 2004
On Mon, 2004-08-02 at 17:19, Tim Bunce wrote:
> It doesn't cache connections, but does it (or something else) explicitly
> disconnect before the fork?

Good point, it does not.  Looking back at the code where I used this
under mod_perl with set_up_table(), I was fetching my own database
handle.  That was safe, because I went straight through Apache::DBI. 
Ima::DBI::_mk_db_closure(), which is called if you use set_db(), would
make the connection persistent even during Apache startup.

Ima::DBI does contain a $dbh->FETCH('Active') && $dbh->ping check, but
I'm not sure if that's enough to tell that a handle was opened before
forking.  Maybe an additional check is needed.

- Perrin

Apache pre-forking
Tony Bowden 15:35 on 02 Aug 2004

Re: Apache pre-forking
Simon Wilcox 15:43 on 02 Aug 2004

Re: Apache pre-forking
Tim Bunce 21:17 on 02 Aug 2004

Re: Apache pre-forking
Stuart Johnston 16:16 on 02 Aug 2004

Re: Apache pre-forking
Perrin Harkins 17:47 on 02 Aug 2004

Re: Apache pre-forking
Tim Bunce 21:19 on 02 Aug 2004

Re: Apache pre-forking
Perrin Harkins 21:50 on 02 Aug 2004

Re: Apache pre-forking
jason scott gessner 00:06 on 03 Aug 2004

Re: Apache pre-forking
Perrin Harkins 17:33 on 03 Aug 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52