forked from JoinMarket-Org/joinmarket-clientserver
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See JoinMarket-Org#1435. Prior to this commit, if connections were immediately closed, no backoff or jitter were applied to delay the next connection attempt, resulting in too many connection attempts to directory nodes that the client could not reach, and spam in the logs. After this commit, we enforce that we always shut down the ClientService on any disconnection trigger or connection failure, and only attempt to reconnect with a manual backoff delay (4 seconds increasing by 50% for 20 attempts, plus a few seconds jitter), for directory nodes, while for non-directory nodes we always give up on any failure. Max delay is a bit above 3 hours.
- Loading branch information
Showing
1 changed file
with
38 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