Retry on HTTP 500

AWS S3 recommends retries on both 500 and 503 HTTP response status codes
https://aws.amazon.com/premiumsupport/knowledge-center/http-5xx-errors-s3/
pull/2004/head
Nico 2022-11-17 11:00:12 -08:00 committed by GitHub
parent f4cbc7bb31
commit 169b5284c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -220,6 +220,7 @@ bool HttpSkipResponseCommand::processResponse()
}
throw DL_RETRY_EX2(MSG_RESOURCE_NOT_FOUND,
error_code::RESOURCE_NOT_FOUND);
case 500:
case 502:
case 503:
// Only retry if pretry-wait > 0. Hammering 'busy' server is not