-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
target/remote: Improve handling of stale connections in pool
1. Apply conn_max_idle_time to each connection individually, not pool bucket. 2. Include local_addr in some log messages to help identify individual connections in the pool. 3. Run conn.Close outside of keysLock and asynchronously. Ensures slow server or dead connection won't cause pool operations to hang. 4. Set 5 second timeout for QUIT call in conn.Close. To detect dead connections faster, there is no reason for any server to take more than 5 seconds to respond to QUIT. See #675.
- Loading branch information
Showing
4 changed files
with
88 additions
and
32 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
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