Skip to content

Commit

Permalink
retry 499 error if seen by client (#1627)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshavardhana committed Mar 15, 2022
1 parent f2d40be commit a585980
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions retry.go
Expand Up @@ -110,6 +110,7 @@ func isS3CodeRetryable(s3Code string) (ok bool) {
// List of HTTP status codes which are retryable.
var retryableHTTPStatusCodes = map[int]struct{}{
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: {},
http.StatusBadGateway: {},
http.StatusServiceUnavailable: {},
Expand Down

0 comments on commit a585980

Please sign in to comment.