Retry with 504 status code

pull/547/head
Tatsuhiro Tsujikawa 2016-01-26 15:49:05 +09:00
parent 8203ee3d0d
commit ad6d799b98
1 changed files with 4 additions and 0 deletions

View File

@ -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),