Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
s3io.Reader: reissue request on ERRCONNRESET
If a "connection error" reset is encountered while reading a s3 object attempt to restart the connection and resume read at the current offset. This solves a bug found when trying to ingest several s3 hosted log files: several files will stop ingesting with the error "connection reset by peer". There seems to be a curious behavior of the s3 service that happens when a single session maintains numerous long-running download connections to various objects in a bucket- the service appears to reset connections at random. See: aws/aws-sdk-go#1242 Closes #2005
- Loading branch information