2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

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
pull/1/head
Tatsuhiro Tsujikawa 2008-02-27 12:55:30 +00:00
parent deff272435
commit 897ab7321f
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
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 <tujikawa at rednoah dot com> 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Removed RequestInfo.h and FileAllocator.h since they have been removed. Removed RequestInfo.h and FileAllocator.h since they have been removed.

View File

@ -127,8 +127,8 @@ BtMessageHandle DefaultBtInteractive::receiveAndSendHandshake() {
} }
void DefaultBtInteractive::doPostHandshakeProcessing() { void DefaultBtInteractive::doPostHandshakeProcessing() {
// TODO where is the valid place to rest haveCheckTime? // Set time 0 to haveCheckPoint to cache http/ftp download piece completion
haveCheckPoint.reset(); haveCheckPoint.setTimeInSec(0);
keepAliveCheckPoint.reset(); keepAliveCheckPoint.reset();
floodingCheckPoint.reset(); floodingCheckPoint.reset();
_pexCheckPoint.setTimeInSec(0); _pexCheckPoint.setTimeInSec(0);