summaryrefslogtreecommitdiff
path: root/src/HttpSkipResponseCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-01-26 15:49:05 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-01-26 15:49:05 +0900
commitad6d799b98582250aad50db96519fc7242f6e88a (patch)
treede0cef249cf68f5a0c8a473eba27c6a77fc182ee /src/HttpSkipResponseCommand.cc
parent8203ee3d0d9ddc9acebe79c78a363a989ae9d839 (diff)
Retry with 504 status code
Diffstat (limited to 'src/HttpSkipResponseCommand.cc')
-rw-r--r--src/HttpSkipResponseCommand.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/HttpSkipResponseCommand.cc b/src/HttpSkipResponseCommand.cc
index b72844ac..2c4556d1 100644
--- a/src/HttpSkipResponseCommand.cc
+++ b/src/HttpSkipResponseCommand.cc
@@ -229,6 +229,10 @@ bool HttpSkipResponseCommand::processResponse()
}
throw DL_ABORT_EX2(fmt(EX_BAD_STATUS, statusCode),
error_code::HTTP_SERVICE_UNAVAILABLE);
+ case 504:
+ // This is Gateway Timeout, so try again
+ throw DL_RETRY_EX2(fmt(EX_BAD_STATUS, statusCode),
+ error_code::HTTP_SERVICE_UNAVAILABLE);
};
throw DL_ABORT_EX2(fmt(EX_BAD_STATUS, statusCode),