On Mon, Jun 30, 2008 at 4:54 AM, Tobias Kremer <[EMAIL PROTECTED]> 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

Reply via email to