-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Retry intermittent S3 download failures
This builds on the recent work in botocore (boto/botocore#210) to address two things: * ensure than any .read() call used from the streaming response of `GetObject` will never hang. We do this by applying a timeout to the underlying socket. * Catch and retry IncompleteReadError. There may be times when we don't receive all of the contents from a `GetObject` request such that amount_read != content-length header. Botocore now checks this and raises an exception, which the CLI now catches and retries.
- Loading branch information
Showing
3 changed files
with
109 additions
and
24 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