Subject: | reconnect not working when reuse_dbh is set! |
rw_handle will try a reconnect if ping failed, but if reuse_dbh is set,
he will always get back the broken connection from $Handles{$driver->dsn}!
So perhaps
if ($driver->dbh and !$driver->dbh->ping) {
delete($Handles{$driver->dsn});
$driver->dbh(undef);
}
will fix that!