Subject: | KILL of parent thread will raise an error and die |
The KILL SQL command issued in _kill_connection() seems to conflict with
newer versions of DBD::mysql such that it will always raise an exception
and call_with_timeout() will always die.
The attached patch fixes this, althought I'm not 100% sure it doesn't
hide some other possible problems.
Subject: | dbix-timeout-raiseerror.patch |
--- Timeout.pm.old 2012-02-24 11:38:57.095308916 -0500
+++ Timeout.pm.new 2012-02-24 11:39:22.861719839 -0500
@@ -103,6 +103,7 @@
my $new_dbh = $dbh->clone();
$new_dbh->{InactiveDestroy} = 0;
+ $new_dbh->{RaiseError} = 0;
$new_dbh->do("KILL $thread_id");
}