From 2873953f30dc6101a3a38797e514522d9d9e6456 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 18 Jan 2011 21:22:59 +0900 Subject: [PATCH] Changed the default value of --retry-wait to 0 for backward compatibility. Also updated usage doc. --- doc/aria2c.1.asciidoc | 4 +++- src/OptionHandlerFactory.cc | 2 +- src/usage_text.h | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/doc/aria2c.1.asciidoc b/doc/aria2c.1.asciidoc index 81187e44..0e745d49 100644 --- a/doc/aria2c.1.asciidoc +++ b/doc/aria2c.1.asciidoc @@ -204,7 +204,9 @@ aria2c -o myfile.zip "http://mirror1/file.zip" "http://mirror2/file.zip" [[aria2_optref_retry_wait]]*--retry-wait*=SEC:: - Set the seconds to wait between retries. Default: '2' + Set the seconds to wait between retries. With SEC > 0, aria2 will + retry download when the HTTP server returns 503 response. Default: + '0' [[aria2_optref_server_stat_of]]*--server-stat-of*=FILE:: diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc index e342bca4..dc933dd6 100644 --- a/src/OptionHandlerFactory.cc +++ b/src/OptionHandlerFactory.cc @@ -693,7 +693,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() SharedHandle op(new NumberOptionHandler (PREF_RETRY_WAIT, TEXT_RETRY_WAIT, - "2", + "0", 0, 600)); op->addTag(TAG_FTP); op->addTag(TAG_HTTP); diff --git a/src/usage_text.h b/src/usage_text.h index 34368e38..56c2ba2e 100644 --- a/src/usage_text.h +++ b/src/usage_text.h @@ -59,7 +59,9 @@ " Please note that in Metalink download, this\n" \ " option has no effect and use -C option instead.") #define TEXT_RETRY_WAIT \ - _(" --retry-wait=SEC Set the seconds to wait between retries.") + _(" --retry-wait=SEC Set the seconds to wait between retries. \n" \ + " With SEC > 0, aria2 will retry download when the\n" \ + " HTTP server returns 503 response.") #define TEXT_TIMEOUT \ _(" -t, --timeout=SEC Set timeout in seconds.") #define TEXT_MAX_TRIES \