Skip to content

Commit

Permalink
408 Server Timeout should be a retryable status code
Browse files Browse the repository at this point in the history
  • Loading branch information
m90 committed Dec 12, 2024
1 parent ffa2ddd commit 57510dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ func isS3CodeRetryable(s3Code string) (ok bool) {

// List of HTTP status codes which are retryable.
var retryableHTTPStatusCodes = map[int]struct{}{
http.StatusRequestTimeout: {},
429: {}, // http.StatusTooManyRequests is not part of the Go 1.5 library, yet
499: {}, // client closed request, retry. A non-standard status code introduced by nginx.
http.StatusInternalServerError: {},
Expand Down

0 comments on commit 57510dd

Please sign in to comment.