-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unixsock: require min conn len before delay reset
Once a unixsock obj transitions to the UP state, require the new connection to be up for a minimum length of time before resetting the reconnect delay. This protects against spinning on reconnects when the connection is immediately terminated. Other objects using an exponential reconnect delay require the connection to be up for at least the minimum timeout. This doesn't make sense for a unixsock obj which now has a 1-second minimum timeout. Instead, unixsock uses the new MIN_CONNECT_SECS which defines the minimum number of seconds that a newly-connected object must be up before resetting its reconnect delay back to the minimum.
- Loading branch information
Showing
2 changed files
with
37 additions
and
7 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