mirror of https://github.com/aria2/aria2
Merge 0b9fa1e1a7
into b519ce04e3
commit
452afdc9c9
|
@ -386,7 +386,10 @@ bool AbstractCommand::execute()
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (err.getErrorCode() == error_code::HTTP_SERVICE_UNAVAILABLE) {
|
if (err.getErrorCode() == error_code::HTTP_SERVICE_UNAVAILABLE ||
|
||||||
|
err.getErrorCode() == error_code::RESOURCE_NOT_FOUND) {
|
||||||
|
A2_LOG_DEBUG(fmt(MSG_RETRY_WAITING, getCuid(), getOption()->getAsInt(PREF_RETRY_WAIT),
|
||||||
|
req_->getUri().c_str()));
|
||||||
Timer wakeTime(global::wallclock());
|
Timer wakeTime(global::wallclock());
|
||||||
wakeTime.advance(
|
wakeTime.advance(
|
||||||
std::chrono::seconds(getOption()->getAsInt(PREF_RETRY_WAIT)));
|
std::chrono::seconds(getOption()->getAsInt(PREF_RETRY_WAIT)));
|
||||||
|
|
|
@ -47,6 +47,7 @@
|
||||||
#define MSG_SENDING_REQUEST "CUID#%" PRId64 " - Requesting:\n%s"
|
#define MSG_SENDING_REQUEST "CUID#%" PRId64 " - Requesting:\n%s"
|
||||||
#define MSG_RECEIVE_RESPONSE "CUID#%" PRId64 " - Response received:\n%s"
|
#define MSG_RECEIVE_RESPONSE "CUID#%" PRId64 " - Response received:\n%s"
|
||||||
#define MSG_DOWNLOAD_ABORTED "CUID#%" PRId64 " - Download aborted. URI=%s"
|
#define MSG_DOWNLOAD_ABORTED "CUID#%" PRId64 " - Download aborted. URI=%s"
|
||||||
|
#define MSG_RETRY_WAITING "CUID#%" PRId64 " - Waiting (%d sec) for retry of the download. URI=%s"
|
||||||
#define MSG_RESTARTING_DOWNLOAD "CUID#%" PRId64 " - Restarting the download. URI=%s"
|
#define MSG_RESTARTING_DOWNLOAD "CUID#%" PRId64 " - Restarting the download. URI=%s"
|
||||||
#define MSG_TORRENT_DOWNLOAD_ABORTED "CUID#%" PRId64 " - Download aborted."
|
#define MSG_TORRENT_DOWNLOAD_ABORTED "CUID#%" PRId64 " - Download aborted."
|
||||||
#define MSG_MAX_TRY \
|
#define MSG_MAX_TRY \
|
||||||
|
|
Loading…
Reference in New Issue