From c99960aa330d9666682a9871b1194eaa38ab4dc7 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 14 Jul 2010 11:39:05 +0000 Subject: 2010-07-14 Tatsuhiro Tsujikawa 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 --- src/HttpResponseCommand.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/HttpResponseCommand.cc') 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()); -- cgit