Browse Source

prevent flow of unconfirmed requests after twister start

miguelfreitas
Denis Ryabov 11 years ago
parent
commit
601e0422e4
  1. 2
      libtorrent/src/kademlia/node.cpp

2
libtorrent/src/kademlia/node.cpp

@ -767,7 +767,7 @@ void node_impl::load_storage(entry const* e) { @@ -767,7 +767,7 @@ void node_impl::load_storage(entry const* e) {
// wait 1 minute (to load torrents, etc.)
// randomize refresh time
item.next_refresh_time = now + minutes(1) + minutes(item.confirmed ? 60 : 1) * getRandom();
item.next_refresh_time = now + minutes(1) + minutes(60) * getRandom();
to_add.push_back(item);
#ifdef ENABLE_DHT_ITEM_EXPIRE

Loading…
Cancel
Save