On Fri, 2005-11-04 at 11:53 -0500, Philip M. Gollucci wrote: > > But I can't help feeling I'm redesigning the wheel here - would I have the > > same > > problem if I used Apache::DBI? Are there other easier ways to handle this? > IIRC, Apache::DBI just makes the connection persistant. It could still > time out and disconnect if a handle in the handle cache isn't used. AKA > the MySQL Morning bug.
Apache::DBI checks the handle to make sure it is still connected before handing it back to you. If it has been disconnected, a new connection will be made. This is separate from the auto-reconnect functionality of MySQL. - Perrin