summaryrefslogtreecommitdiff
path: root/src/error_code.h
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/error_code.h
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/error_code.h')
-rw-r--r--src/error_code.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/error_code.h b/src/error_code.h
index e9670a11..18abc6f0 100644
--- a/src/error_code.h
+++ b/src/error_code.h
@@ -71,7 +71,8 @@ enum Value {
BENCODE_PARSE_ERROR = 25,
BITTORRENT_PARSE_ERROR = 26,
MAGNET_PARSE_ERROR = 27,
- OPTION_ERROR = 28
+ OPTION_ERROR = 28,
+ HTTP_SERVICE_UNAVAILABLE = 29
};
} // namespace error_code