diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-09-10 14:56:44 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-09-10 14:56:44 +0000 |
| commit | 3599067ec1fb89cc9451bde73e27a12b4f2a4073 (patch) | |
| tree | 11b728fd16395a002dd8b473c03535121087ca02 /src/HttpResponseCommand.cc | |
| parent | 1b2a76706f5138e65e8ad0136671101287f5fa43 (diff) | |
2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added --max-file-not-found=NUM option. If aria2 receives `file
not
found' error from HTTP/FTP server NUM times without getting
single
bytes of data, then force the download to fail.
Basically aria2 tris all URIs available. So if long list of URIs
are
specified in Metalink, then aria2 will take a long time to fail
eventually if all URIs are outdated. This option eases this
situation
to limit the number of servers to try.
* src/FtpNegotiationCommand.cc
* src/HelpItemFactory.cc
* src/HttpResponseCommand.cc
* src/OptionHandlerFactory.cc
* src/PeerStat.h
* src/RequestGroup.cc
* src/RequestGroup.h
* src/SegmentMan.cc
* src/SegmentMan.h
* src/option_processing.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
Diffstat (limited to 'src/HttpResponseCommand.cc')
| -rw-r--r-- | src/HttpResponseCommand.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/HttpResponseCommand.cc b/src/HttpResponseCommand.cc index 847a2d8f..0ccd7d2f 100644 --- a/src/HttpResponseCommand.cc +++ b/src/HttpResponseCommand.cc @@ -91,9 +91,11 @@ bool HttpResponseCommand::executeInternal() httpResponse->retrieveCookie(); if(httpResponse->getResponseStatus() >= HttpHeader::S300) { + if(httpResponse->getResponseStatus() == HttpHeader::S404) { + _requestGroup->increaseAndValidateFileNotFoundCount(); + } return skipResponseBody(httpResponse); } - if(!_requestGroup->isSingleHostMultiConnectionEnabled()) { // Query by hostname. Searching by CUID may returns NULL. // In case when resuming download, ServerHost is registered with CUID A. |
