perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Perrin Harkins" <>
Subject Re: Segfault when connecting during Apache startup with Apache::DBI
Date Mon, 30 Jun 2008 12:48:13 GMT
On Mon, Jun 30, 2008 at 4:54 AM, Tobias Kremer <> wrote:
> We never fork and I thought that Apache::DBI takes care of checking if a
> connection went stale by utilizing DBI's/DBD::mysql's ping() method?

It does, but it can't stop you from doing things like putting a
database handle in a global during startup and trying to use it later.

> Sometimes
> I'm also seeing this error seconds after restarting the mod_perl Apache - I
> think that there should be only fresh connections then ...

That's a different kind of timeout.  I meant you may have a really
slow query that takes too long to read from MySQL, not that the
handles would be stale.

Getting errors right after startup makes it sound more likely that you
are storing the database handles you open during startup and trying to
use them.

- Perrin

View raw message