Closed apmorton closed 6 months ago
This should be available in the next release of s3transfer now that https://github.com/boto/s3transfer/pull/301 is merged. Thanks again, @apmorton!
This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.
Describe the bug
When using
download_fileobj
to get an s3 object in an environment withurllib3
version 2.x a tcp connection reset while streaming the response body will not be retried.This is retried correctly when using
urllib3
version 1.xExpected Behavior
The request should be retried according to the configured policy
Current Behavior
botocore.exceptions.ResponseStreamingError
is raised to the caller after only a single request attempt.Reproduction Steps
Given the following script that simulates an unreliable network connection:
and the following conda environment:
Observe that only a single request is made and the following exception is raised:
and with the following conda environment:
Observe that multiple request attempts are made and the following exception is correctly raised:
Possible Solution
No response
Additional Information/Context
No response
SDK version used
boto3 1.34.53
Environment details (OS name and version, etc.)
Python 3.11