You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support timeouts in Connection.close() and Pool.release()
Connection.close() and Pool.release() each gained the new timeout
parameter. The pool.acquire() context manager now applies the
passed timeout to __aexit__() as well.
Connection.close() is now actually graceful. Instead of simply dropping
the connection, it attempts to cancel the running query (if any), asks
the server to terminate the connection and waits for the connection to
terminate.
To test all this properly, implement a TCP proxy, which emulates sudden
connectivity loss (i.e. packets not reaching the server).
Closes: #220
0 commit comments