From 169b5284c45cefa6ee1405b63c05355d99506f58 Mon Sep 17 00:00:00 2001 From: Nico Date: Thu, 17 Nov 2022 11:00:12 -0800 Subject: [PATCH] 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/ --- src/HttpSkipResponseCommand.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/HttpSkipResponseCommand.cc b/src/HttpSkipResponseCommand.cc index a722d774..d6e15a65 100644 --- a/src/HttpSkipResponseCommand.cc +++ b/src/HttpSkipResponseCommand.cc @@ -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