From 07754e36e6614ce53fa919e27763710e9f354c8c Mon Sep 17 00:00:00 2001 From: nicolov Date: Sun, 22 Oct 2017 14:25:01 -0700 Subject: [PATCH] Retry on HTTP 502 --- src/HttpSkipResponseCommand.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/HttpSkipResponseCommand.cc b/src/HttpSkipResponseCommand.cc index 14bd37d4..a722d774 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 502: case 503: // Only retry if pretry-wait > 0. Hammering 'busy' server is not // a good idea.