From d56dddd553f4fa75254f35beb388265573d02ce0 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 1 Dec 2007 04:56:10 +0000 Subject: 2007-12-01 Tatsuhiro Tsujikawa Fixed the bug#1841757: aria2 will connect to server to only get file size. * src/StreamFileAllocationEntry.cc * src/option_processing.cc * src/HttpResponseCommand.cc: Now reuse connection in segmented downloads. * src/FtpNegotiationCommand.cc Suppressed wrong message when finding PreDownloadHandler * src/RequestGroup.cc --- src/StreamFileAllocationEntry.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/StreamFileAllocationEntry.cc') diff --git a/src/StreamFileAllocationEntry.cc b/src/StreamFileAllocationEntry.cc index cfa34a83..1bd9d92f 100644 --- a/src/StreamFileAllocationEntry.cc +++ b/src/StreamFileAllocationEntry.cc @@ -57,6 +57,9 @@ Commands StreamFileAllocationEntry::prepareForNextAction(DownloadEngine* e) if(_timer.difference() <= e->option->getAsInt(PREF_DIRECT_DOWNLOAD_TIMEOUT) && _nextCommand) { commands.push_back(popNextCommand()); + // try remaining uris + Commands streamCommands = _requestGroup->createNextCommandWithAdj(e, -1); + copy(streamCommands.begin(), streamCommands.end(), back_inserter(commands)); } else { if(_currentRequest.isNull()) { commands = _requestGroup->createNextCommandWithAdj(e, 0); -- cgit