diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-01-26 15:49:05 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-01-26 15:49:05 +0900 |
| commit | ad6d799b98582250aad50db96519fc7242f6e88a (patch) | |
| tree | de0cef249cf68f5a0c8a473eba27c6a77fc182ee /src/HttpSkipResponseCommand.cc | |
| parent | 8203ee3d0d9ddc9acebe79c78a363a989ae9d839 (diff) | |
Retry with 504 status code
Diffstat (limited to 'src/HttpSkipResponseCommand.cc')
| -rw-r--r-- | src/HttpSkipResponseCommand.cc | 4 |
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), |
