-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes the server's Run method to properly attempt reconnections to the dcrlnd node in case of errors. Previously, two things were wrong in this method: - The context used in some calls was ctx instead of gctx, which caused some of the subsystems to not exit correctly on failures and thus mask the underlying connection error. - There was no re-attempt at failed operations, when the reason for failure was a connection error (as opposed to a graceful termination of the server). This commit fixes both issues by using the correct context everywhere and ensuring all subsystems re-attempt their functions until the context is canceled, with an appropriate delay.
- Loading branch information
Showing
1 changed file
with
63 additions
and
41 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