-
Notifications
You must be signed in to change notification settings - Fork 370
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(storage): only backoff before resume attempts
`storage::Client::ReadObject()` resumes a download that gets interrupted (controlled by policy). On the first resume attempt, the library does not back off (sleep), becuase there is no reason to believe the problem is load related. If the first resume fails, the library backsoff before each attempt, as the problem might be load related after this point. The library was *also* backing off before issuing the first `Read()` on the newly created source of data. That effectively doubles the backoff time, and leaves the resumed connection idle for (potentially) a long time when there are multiple resume attempts needed.
- Loading branch information
Showing
2 changed files
with
72 additions
and
22 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