Skip to content

Detect stale connections

Latest
Compare
Choose a tag to compare
@schveiguy schveiguy released this 22 May 22:09
57fbc2b

This release adds a new exception, MYXStaleConnection which is thrown when a connection appears to be stale. A stale connection can happen because the server closed the connection (maybe it restarted, maybe the network failed briefly, or the server just closed it for whatever reason).

The idea is that you catch this exception and then can retry your SQL calls.

In a future release, this retry might become automatic and the exception removed.