Open carp3 opened 6 years ago
Apply this patch and rebuild aria2.
diff --git a/src/HttpSkipResponseCommand.cc b/src/HttpSkipResponseCommand.cc
index a722d77..1446678 100644
--- a/src/HttpSkipResponseCommand.cc
+++ b/src/HttpSkipResponseCommand.cc
@@ -222,6 +222,8 @@ bool HttpSkipResponseCommand::processResponse()
error_code::RESOURCE_NOT_FOUND);
case 502:
case 503:
+ case 520:
+ case 521:
// Only retry if pretry-wait > 0. Hammering 'busy' server is not
// a good idea.
if (getOption()->getAsInt(PREF_RETRY_WAIT) > 0) {
cloud-flare uses http error 520 and 521 when web server is not responding/over loaded. but aria abort download and doesn't retry
aria2c --max-tries=0 --max-file-not-found=10 https://httpstat.us/520
Output: