summaryrefslogtreecommitdiff
path: root/src/FtpNegotiationCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-06-29 16:43:41 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-06-29 16:43:41 +0000
commitcece2bc896b941d0c9b9d441460b5d32989268bd (patch)
treeff5348711867e2cb2cd753d7e2549a20a201675f /src/FtpNegotiationCommand.cc
parentc4d79d7160569bef82c4a67b267d78289b91e449 (diff)
2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed ServerHost. Same functionality is implemented using FileEntry's in-flight Request objects. * src/AbstractCommand.cc * src/BtDependency.cc * src/CreateRequestCommand.cc * src/FileEntry.cc * src/FileEntry.h * src/FtpNegotiationCommand.cc * src/HttpResponseCommand.cc * src/Makefile.am * src/Metalink2RequestGroup.cc * src/RequestGroup.cc * src/RequestGroup.h * src/ServerHost.cc: Removed * src/ServerHost.h: Removed * test/BtDependencyTest.cc * test/FileEntryTest.cc * test/RequestGroupTest.cc
Diffstat (limited to 'src/FtpNegotiationCommand.cc')
-rw-r--r--src/FtpNegotiationCommand.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/FtpNegotiationCommand.cc b/src/FtpNegotiationCommand.cc
index 9abdaa34..95cda465 100644
--- a/src/FtpNegotiationCommand.cc
+++ b/src/FtpNegotiationCommand.cc
@@ -57,7 +57,6 @@
#include "DefaultBtProgressInfoFile.h"
#include "RequestGroupMan.h"
#include "DownloadFailureException.h"
-#include "ServerHost.h"
#include "Socket.h"
#include "StringFormat.h"
#include "DiskAdaptor.h"
@@ -103,12 +102,8 @@ bool FtpNegotiationCommand::executeInternal() {
(cuid, req, _fileEntry, _requestGroup, ftp, e, dataSocket, socket);
command->setStartupIdleTime(getOption()->getAsInt(PREF_STARTUP_IDLE_TIME));
command->setLowestDownloadSpeedLimit(getOption()->getAsInt(PREF_LOWEST_SPEED_LIMIT));
- if(!_requestGroup->isSingleHostMultiConnectionEnabled()) {
- SharedHandle<ServerHost> sv =
- _requestGroup->searchServerHost(req->getHost());
- if(!sv.isNull()) {
- _fileEntry->removeURIWhoseHostnameIs(sv->getHostname());
- }
+ if(!_fileEntry->isSingleHostMultiConnectionEnabled()) {
+ _fileEntry->removeURIWhoseHostnameIs(req->getHost());
}
_requestGroup->getURISelector()->tuneDownloadCommand
(_fileEntry->getRemainingUris(), command);