made the piece picker handle multi-request blocks better. fixes problem that might occur at the end of a torrent where the piece picker could take over blocks back and forth
This commit is contained in:
@@ -105,7 +105,6 @@ setup_transfer(session* ses1, session* ses2, session* ses3
|
||||
{
|
||||
// give the other peers some time to get an initial
|
||||
// set of pieces before they start sharing with each-other
|
||||
test_sleep(10000);
|
||||
tor3.connect_peer(tcp::endpoint(
|
||||
address::from_string("127.0.0.1")
|
||||
, ses2->listen_port()));
|
||||
|
@@ -54,7 +54,7 @@ void test_swarm()
|
||||
int count_dl_rates2 = 0;
|
||||
int count_dl_rates3 = 0;
|
||||
|
||||
for (int i = 0; i < 100; ++i)
|
||||
for (int i = 0; i < 35; ++i)
|
||||
{
|
||||
std::auto_ptr<alert> a;
|
||||
a = ses1.pop_alert();
|
||||
|
Reference in New Issue
Block a user