Skip to content
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

Retry on HTTP 500 #2004

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

infinite-turtles
Copy link

AWS S3 recommends retries on both 500 and 503 HTTP response status codes https://aws.amazon.com/premiumsupport/knowledge-center/http-5xx-errors-s3/

AWS S3 recommends retries on both 500 and 503 HTTP response status codes
https://aws.amazon.com/premiumsupport/knowledge-center/http-5xx-errors-s3/
@tsutsu
Copy link

tsutsu commented Jun 13, 2024

This probably shouldn't be a default behavior; most hosts will only emit 500 errors for logic errors that will take at least a manual redeploy of their infrastructure to fix, not transient operational errors that will be fixed by retrying.

What I would suggest is to add a flag (e.g. --retry-on-http-status) that lets you specify a list of additional HTTP status codes that should trigger a retry. People using aria2 with S3 could then set --retry-on-http-status=500.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants