New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed #1542
Comments
Are you seeing this consistently or intermittently? Can you provide a code sample for where you are calling PutObjectRequest? |
This is an intermittent error which we are observing recently and its making our
|
@spfink do you need anything else from me on this? |
Are these files being modified or appended to while you upload? What's the rate at which you upload files? |
@shorea we prepare the files locally before uploading - so these files are not modified/appended while we are uploading. The rate at which we upload is actually very low - at best ~10 upload per hour. |
Given your other issue (#1544) I suggest you dive deep into the networking layer to see if there is something going on. If that all checks out I suggest reaching out to the S3 service team with some request ids (where possible). |
Closing issue, feel free to reopen if you need further assistance from the SDK team. |
The OP's questions |
I am getting this error once I am making a
putObject
request.It's not clear to me what is causing this issue. What is the root cause for this error and what would be the strategy to avoid this?
Secondly, how to make this a retryable so that
aws-sdk
retries while having this error. I am already setting the error retry which does not seem to have any effect.Code:
In a similar issue (aws/aws-sdk-js#281), it was mentioned this happens when the provided Content-Length is larger than the number of bytes sent, causing S3 to wait for you to send a specified number of bytes then timeout while waiting.
However, for my case, I am not specifying any content length and I am simply invoking with:
PutObjectRequest(String bucketName, String key, File file)
The text was updated successfully, but these errors were encountered: