-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move stale connection check to ResetSession() (#1496)
When ResetSession was added, it was called when the connection is put into the pool. Thet is why we had only set `mc.reset` flag on ResetSession(). In Go 1.15, this behavior was changed. (golang/go@971f8a2) ResetSession is called when the connection is checked out from the pool. So we can call checkConnLiveness() directly from ResetSession.
- Loading branch information
Showing
2 changed files
with
25 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters