From 8661bc049a023588c5188ab1062a2d371f36fd38 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 11 Jul 2009 15:57:06 +0000 Subject: [PATCH] 2009-07-12 Tatsuhiro Tsujikawa Updated doc: TODO1.5 -> TODO * src/FileEntry.cc * src/HttpResponseCommand.cc --- ChangeLog | 6 ++++++ src/FileEntry.cc | 6 +++--- src/HttpResponseCommand.cc | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index e73bd74b..f6cec10f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-07-12 Tatsuhiro Tsujikawa + + Updated doc: TODO1.5 -> TODO + * src/FileEntry.cc + * src/HttpResponseCommand.cc + 2009-07-12 Tatsuhiro Tsujikawa Added assertion fileEntries.size() == 1 if BitTorrent is not diff --git a/src/FileEntry.cc b/src/FileEntry.cc index 5e1ffb4b..f079eda9 100644 --- a/src/FileEntry.cc +++ b/src/FileEntry.cc @@ -107,7 +107,7 @@ template static bool inFlightHost(InputIterator first, InputIterator last, const std::string& hostname) { - // TODO1.5 redirection should be considered here. We need to parse + // TODO redirection should be considered here. We need to parse // original URI to get hostname. for(; first != last; ++first) { if((*first)->getHost() == hostname) { @@ -170,12 +170,12 @@ FileEntry::findFasterRequest(const SharedHandle& base) return SharedHandle(); } const SharedHandle& basestat = base->getPeerStat(); - // TODO1.5 hard coded value. See PREF_STARTUP_IDLE_TIME + // TODO hard coded value. See PREF_STARTUP_IDLE_TIME const int startupIdleTime = 10; if(basestat.isNull() || (basestat->getDownloadStartTime().elapsed(startupIdleTime) && fastest->getAvgDownloadSpeed()*0.8 > basestat->calculateDownloadSpeed())){ - // TODO1.5 we should consider that "fastest" is very slow. + // TODO we should consider that "fastest" is very slow. SharedHandle fastestRequest = _requestPool.front(); _requestPool.pop_front(); return fastestRequest; diff --git a/src/HttpResponseCommand.cc b/src/HttpResponseCommand.cc index 5bc6229b..b9819d4a 100644 --- a/src/HttpResponseCommand.cc +++ b/src/HttpResponseCommand.cc @@ -122,7 +122,7 @@ bool HttpResponseCommand::executeInternal() return skipResponseBody(httpResponse); } if(!_fileEntry->isSingleHostMultiConnectionEnabled()) { - // TODO1.5 redirection should be considered here. We need to parse + // TODO redirection should be considered here. We need to parse // original URI to get hostname. _fileEntry->removeURIWhoseHostnameIs(req->getHost()); }