diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-12-01 04:56:10 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-12-01 04:56:10 +0000 |
| commit | d56dddd553f4fa75254f35beb388265573d02ce0 (patch) | |
| tree | cbd64f6738f5058dce326f50ac7c7890fb26581a /src/StreamFileAllocationEntry.cc | |
| parent | 23a41fba06f4a239e7ddd61708fb45de876a0950 (diff) | |
2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
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
Diffstat (limited to 'src/StreamFileAllocationEntry.cc')
| -rw-r--r-- | src/StreamFileAllocationEntry.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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); |
