"John S. Evans" wrote:
>
> Weird. The whole point of Apache::DBI (or so I understand it) is so that
> your $dbh stays valid across CGI or Handler calls.
That's right. The disconnect call is a no-op when using Apache::DBI.
> I can only think of two reasons why I get the error message:
>
> 1) My child process is dying, and the DBI code is telling me that I never
> called disconnect() on that $dbh. I don't think this is the case, since the
> line (#119) in Apache::DBI that is referenced in the error is in the
> connect() call.
>
> 2) My $dbh has timed out, and Apache::DBI is attempting to reconnect. The
> code author decided not to perform a disconnect() because they knew the
> connection was already timed out.
Those are both good guesses. I'd say the latter as well. One of your
db handles probably failed to ping and got removed. I wouldn't worry
about it.
- Perrin