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 HTTP 499 errors by default #1612

Merged
merged 1 commit into from
Mar 23, 2023
Merged

retry HTTP 499 errors by default #1612

merged 1 commit into from
Mar 23, 2023

Conversation

imjasonh
Copy link
Collaborator

HTTP 499 is a status code that nginx made up to indicate the client hung up before the server responded. See https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#nginx

We're seeing this response relatively often coming from blob requests to Cloudflare R2, and retrying in general seems to work just fine.

If a 499 is encountered multiple times, the overall blob request will still fail, so a persistent 499 issue should be surfaced to the user after a brief delay, just like with 502, etc.

Since it's unofficial there's no Go const for 499. See https://pkg.go.dev/net/http#pkg-constants

@imjasonh imjasonh enabled auto-merge (squash) March 23, 2023 13:31
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