diff --git a/ChangeLog b/ChangeLog index 68ea8786..990b3b3b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-02-27 Tatsuhiro Tsujikawa + + Fixed the bug that HAVE message is not sent for a piece they are + downloaded fom http/ftp server before any BitTorrent handshake is done + with peers. + * src/DefaultBtInteractive.cc + 2008-02-27 Tatsuhiro Tsujikawa Removed RequestInfo.h and FileAllocator.h since they have been removed. diff --git a/src/DefaultBtInteractive.cc b/src/DefaultBtInteractive.cc index 1b2de239..50830df5 100644 --- a/src/DefaultBtInteractive.cc +++ b/src/DefaultBtInteractive.cc @@ -127,8 +127,8 @@ BtMessageHandle DefaultBtInteractive::receiveAndSendHandshake() { } void DefaultBtInteractive::doPostHandshakeProcessing() { - // TODO where is the valid place to rest haveCheckTime? - haveCheckPoint.reset(); + // Set time 0 to haveCheckPoint to cache http/ftp download piece completion + haveCheckPoint.setTimeInSec(0); keepAliveCheckPoint.reset(); floodingCheckPoint.reset(); _pexCheckPoint.setTimeInSec(0);