summaryrefslogtreecommitdiff
path: root/src/FileAllocationCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-06-03 14:24:37 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-06-03 14:24:37 +0000
commit453e2f10dddf3b158de39810c1130203fd8d67eb (patch)
treeccf06455843aa4fac0d54495de3fb87c254b28cd /src/FileAllocationCommand.cc
parentccdd5b31a3dfa07cd13d6f7f0f5eaa3d8ff8a61e (diff)
2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
RequestGroup::getNextCommand() was renamed to createNextCommand(). Added its overloaded method. * src/RequestGroup.h (_numConcurrentCommand): New variable. (setNumConcurrentCommand): New function. * src/RequestGroup.cc Abort download if same file is being downloaded concurrently. * src/RequestGroup.h, src/RequestGroupMan.cc (isSameFileBeingDownloaded): New function. * src/HttpResponseCommand.cc (executeInternal) * src/FtpNegotiateCommand.cc (recvSize) * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition. * main.cc: Added help message for -i option.
Diffstat (limited to 'src/FileAllocationCommand.cc')
-rw-r--r--src/FileAllocationCommand.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/FileAllocationCommand.cc b/src/FileAllocationCommand.cc
index ae9750cf..c334b0c5 100644
--- a/src/FileAllocationCommand.cc
+++ b/src/FileAllocationCommand.cc
@@ -52,9 +52,7 @@ bool FileAllocationCommand::executeInternal()
_e->commands.push_back(_fileAllocationEntry->getNextDownloadCommand());
_fileAllocationEntry->setNextDownloadCommand(0);
} else {
- int32_t numCommandsToGenerate = 15;
- Commands commands = _requestGroup->getNextCommand(_e, numCommandsToGenerate);
-
+ Commands commands = _requestGroup->createNextCommand(_e);
Command* command = InitiateConnectionCommandFactory::createInitiateConnectionCommand(cuid, _req, _requestGroup, _e);
commands.push_front(command);