Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stdlib: Use Ping instead of CheckConn in ResetSession
CheckConn is deprecated. It doesn't detect all network outages. It causes a 1ms delay while it tries to read the connection. Ping incurs a round trip but that means it is a much stronger guarantee that the connection is usable. In addition, if the application and the database are on the same network it will actually be faster as round trip times are typically a few hundred microseconds.
- Loading branch information