mirror of https://github.com/aria2/aria2
2010-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Enter 'end game' mode from the beginning when getting torrent metadata for quick data retrieval. * src/HandshakeExtensionMessage.ccpull/1/head
parent
1eef862cc3
commit
698876e2eb
|
@ -1,3 +1,9 @@
|
|||
2010-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Enter 'end game' mode from the beginning when getting torrent
|
||||
metadata for quick data retrieval.
|
||||
* src/HandshakeExtensionMessage.cc
|
||||
|
||||
2010-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Replaced BNode with DHTBucketTreeNode which is 2 times efficient.
|
||||
|
|
|
@ -137,6 +137,9 @@ void HandshakeExtensionMessage::doReceivedAction()
|
|||
|
||||
SharedHandle<PieceStorage> pieceStorage =
|
||||
dctx_->getOwnerRequestGroup()->getPieceStorage();
|
||||
// We enter 'end game' mode from the start to get metadata
|
||||
// quickly.
|
||||
pieceStorage->enterEndGame();
|
||||
peer_->reconfigureSessionResource(dctx_->getPieceLength(),
|
||||
dctx_->getTotalLength());
|
||||
peer_->setAllBitfield();
|
||||
|
|
Loading…
Reference in New Issue