diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-07-14 11:39:05 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-07-14 11:39:05 +0000 |
| commit | c99960aa330d9666682a9871b1194eaa38ab4dc7 (patch) | |
| tree | 49063e0a3c9cecf110c1c1c9837c28a0c9dc840c /src/HttpResponseCommand.cc | |
| parent | 8274432f14606d22b8c11aa55efa18c50ba20767 (diff) | |
2010-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added --max-connection-per-server=NUM option. The default value of
NUM is 1. This option limits the number of connections allowed to
one server for each download. This means when NUM is 2 and 1 URI
is provided, even if you specified -s 5, aria2 establishes 2
connections. Default value of -j option is changed from 5 to 2.
* src/BtDependency.cc
* src/CreateRequestCommand.cc
* src/FileEntry.cc
* src/FileEntry.h
* src/FtpNegotiationCommand.cc
* src/HttpResponseCommand.cc
* src/Metalink2RequestGroup.cc
* src/OptionHandlerFactory.cc
* src/TrackerWatcherCommand.cc
* src/download_helper.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
* test/DownloadHelperTest.cc
* test/FileEntryTest.cc
Diffstat (limited to 'src/HttpResponseCommand.cc')
| -rw-r--r-- | src/HttpResponseCommand.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HttpResponseCommand.cc b/src/HttpResponseCommand.cc index c1b94848..b523699a 100644 --- a/src/HttpResponseCommand.cc +++ b/src/HttpResponseCommand.cc @@ -125,7 +125,7 @@ bool HttpResponseCommand::executeInternal() } return skipResponseBody(httpResponse); } - if(!getFileEntry()->isSingleHostMultiConnectionEnabled()) { + if(getFileEntry()->isUniqueProtocol()) { // TODO redirection should be considered here. We need to parse // original URI to get hostname. getFileEntry()->removeURIWhoseHostnameIs(getRequest()->getHost()); |
