Re: DBI and Apache::DBI issues

Perrin Harkins <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
On Sun, Feb 6, 2011 at 4:44 PM, Max Pinton <[email protected]> wrote:
> Did earlier versions of Perl/mod_perl/DBI/Apache::DBI handle closures
> differently?

No, not at all.  This is a core Perl thing.

> I'm just curious why it used to work. It seems like DBI would
> reconnect a $dbh closure if it timed out.

One thing that might have changed is your database configuration.
MySQL is often configured to automatically reconnect.

That doesn't explain all of your errors though.  I'm guessing that
you're opening a connection during startup and forking with it.  You
need to find that.  Look for things that might open a connection
during startup and move them to ChildInitHandlers instead.

- Perrin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.