-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: Quickly retry file transfers on
net
errors
When encountering some `net` system errors like a network change, we don't want to enter the offline state and wait 10 seconds before retrying the transfer. To speed up things, we add a retry logic around the transfer itself which will retry on specific `net` system errors without entering the offline mode and with a much smaller delay (2 s here). If after a few retries (5 here) we still encounter `net` errors or if at any time we encouter some other kind of error, the retry logic will throw the error and our error handling mechanisms will pick up from here.
- Loading branch information
1 parent
cdb7b3e
commit e4ce588
Showing
3 changed files
with
124 additions
and
95 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