Skip to content

Commit e933708

Browse files
authored
408 Server Timeout should be a retryable status code (#2036)
1 parent c1d6707 commit e933708

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

retry.go

+1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ func isS3CodeRetryable(s3Code string) (ok bool) {
112112

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

0 commit comments

Comments
 (0)