-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also, fine tune timeouts for initial directory connections. The default TCP timeout in twisted TCP4Endpoints being 30 seconds is too slow, we are now at 10s which seems reasonable; but the timeout of trying to connect before declaring that message channel setup must continue without a particular directory is different; so we wait a maximum of 22 seconds (2 tries at the 10s timeout, with breathing room), before giving up on that directory for initial startup; but *not* giving up re-trying to connect to that directory. Additionally, if after that initial 22 seconds we have failed to handshake with *any* directory, we give an error message that the onion message channel is not functional, and stop trying to do anything.
- Loading branch information
Showing
1 changed file
with
37 additions
and
9 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