Add another pattern to "stale connection" detector.

This is fragile, but we don't really want to add a dependency on a concrete
MySQL JDBC library here and then test for some specific internal MySQL JDBC
exception subclass.
This commit is contained in:
Michael Bayne
2025-10-27 08:36:47 -07:00
parent 63b2f0c5f5
commit 8923935f96
@@ -32,7 +32,8 @@ public class MySQLLiaison extends BaseLiaison
String msg = sqe.getMessage();
return (msg != null && (msg.indexOf("Lost connection") != -1 ||
msg.indexOf("link failure") != -1 ||
msg.indexOf("Broken pipe") != -1));
msg.indexOf("Broken pipe") != -1) ||
msg.indexOf("The last packet successfully received") != -1);
}
@Override // from DatabaseLiaison