-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix infinite loop if Reader returns io.ErrUnexpectedEOF
Apparently some HTTP transactions can return io.ErrUnexpectedEOF, eg https://groups.google.com/forum/#!topic/golang-nuts/2wDPB42-rZ0 Before this change, this would result in S3Manager sending a lot of 0 sized parts, eventually causing the error "TotalPartsExceeded: exceeded total allowed configured MaxUploadParts".
- Loading branch information
Showing
2 changed files
with
55 additions
and
3 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