summaryrefslogtreecommitdiff
path: root/src/Request.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-01-17 21:19:45 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-01-17 21:19:45 +0900
commitf2a63fa06a931333ac2e4a3a5d36a56418b4b6cd (patch)
tree1a9114f36cdb32cfd5e0272b672f0c8d5b420cde /src/Request.cc
parent4824b09237e049ac7d912cdaa4a8a041eedd5dab (diff)
Added --retry-wait option.
This option was once existed in aria2 but erased on 2009-09-20. Now it is resurrected once again. We choose 2 as default value, but there is no good theory behind it. Now we retry HTTP download when remote server returns 503 Service Unavailable if --retry-wait > 0. We also added error code 29: HTTP_SERVICE_UNAVAILABLE.
Diffstat (limited to 'src/Request.cc')
-rw-r--r--src/Request.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Request.cc b/src/Request.cc
index 0c68aa90..2fad4b19 100644
--- a/src/Request.cc
+++ b/src/Request.cc
@@ -42,6 +42,7 @@
#include "A2STR.h"
#include "uri.h"
#include "PeerStat.h"
+#include "wallclock.h"
namespace aria2 {
@@ -66,7 +67,8 @@ Request::Request():
hasPassword_(false),
ipv6LiteralAddress_(false),
removalRequested_(false),
- connectedPort_(0)
+ connectedPort_(0),
+ wakeTime_(global::wallclock)
{}
Request::~Request() {}