An Error 503-Message contains typically a retry-after, which is not jet implemented.
Possible implementation:
Index: src/HttpSkipResponseCommand.cc
================================================== =================
--- src/HttpSkipResponseCommand.cc (Revision 2525)
+++ src/HttpSkipResponseCommand.cc (Arbeitskopie)
@@ -192,6 +192,8 @@
} else if(statusCode == 404) {
throw DL_ABORT_EX2(MSG_RESOURCE_NOT_FOUND,
downloadresultcode::RESOURCE_NOT_FOUND);
Please ad this behavior, its very useful for downloads with queues.
Thank you for the patch!
(The latest source code is located at https://github.com/tatsuhiro-t/aria2.
We don't use SVN anymore)
I recently added --retry-wait option in upstream source and if user specifies more than 0 to this option,
when aria2 gets 503, it waits for given seconds and retry HTTP request.
The current implementation does not take into account Retry-After field.
So I think it would be good to use the value of Retry-After if it is less than the value in --retry-wait option.