mirror of
https://github.com/aria2/aria2.git
synced 2025-04-06 22:17:38 +03:00
2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed the bug: aria2 doesn't utilize fast set index offered by peer. * src/Peer.{h, cc} * src/DefaultPieceStorage.cc * test/DefaultPieceStorageTest.cc
This commit is contained in:
parent
2850c16f8a
commit
30739b0763
5 changed files with 21 additions and 22 deletions
|
@ -100,7 +100,7 @@ void DefaultPieceStorageTest::testGetMissingFastPiece() {
|
|||
|
||||
peer->setAllBitfield();
|
||||
peer->setFastExtensionEnabled(true);
|
||||
peer->addFastSetIndex(2);
|
||||
peer->addPeerAllowedIndex(2);
|
||||
|
||||
PieceHandle piece = pss.getMissingFastPiece(peer);
|
||||
CPPUNIT_ASSERT_EQUAL(string("piece: index=2, length=128"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue