ソースを参照

Retry with 504 status code

Tatsuhiro Tsujikawa 9 年 前
コミット
ad6d799b98
1 ファイル変更4 行追加0 行削除
  1. 4 0
      src/HttpSkipResponseCommand.cc

+ 4 - 0
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),