Skip to content

retry HTTP 499 errors by default#1612

Merged
imjasonh merged 1 commit intogoogle:mainfrom
imjasonh:retry-499
Mar 23, 2023
Merged

retry HTTP 499 errors by default#1612
imjasonh merged 1 commit intogoogle:mainfrom
imjasonh:retry-499

Conversation

@imjasonh
Copy link
Copy Markdown
Contributor

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 requested a review from jonjohnsonjr March 23, 2023 13:31
@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.

2 participants