-
Notifications
You must be signed in to change notification settings - Fork 248
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
Got "read: connection reset by peer" error when using version 1.0.0+ #294
Comments
At a minimum it seems like the s5cmd custom retryer should probably consider |
Per aws/aws-sdk-go#2926 (comment), the upstream SDK doesn't retry connection reset errors on reads, because at that point we can't tell if the server has already applied the operation. For S3 operations, I think pretty much all requests should be safely idempotent, so I think we should retry these errors. I saw some of my own long-running jobs fail this weekend due to network weather and some dropped connections that s5cmd did not retry, which I found very surprising. Per aws/aws-sdk-go@c3d2710, the `strings.Contains` check does seem to be the best way to check for this error. Fixes #294
@kevin-wyx could you test latest commit please? |
I am also getting this error on |
I am still getting this error on |
I am also getting the same problem with s5cmd version "v2.0.0-beta.2-c978e4a" |
Tested on OpenStack Swift using s5cmd version 1.0.0 and 1.2.1 with the following command:
And got errors like this:
However, it's all good using s5cmd v0.7.0 with the same command. No error returned at all.
I aslo found an issue on aws-sdk-go repo (see below) complainting about the same error.
aws/aws-sdk-go#3027
Is it possible that it's the new version of aws-sdk-go causes the problem?
The text was updated successfully, but these errors were encountered: