diff --git a/libtorrent/src/session.cpp b/libtorrent/src/session.cpp index 8b4d5544..5382ff4a 100644 --- a/libtorrent/src/session.cpp +++ b/libtorrent/src/session.cpp @@ -1235,7 +1235,7 @@ namespace libtorrent , coalesce_writes(false) , outgoing_ports(0,0) , peer_tos(0) - , active_downloads(3) + , active_downloads(6) , active_seeds(5) , active_dht_limit(88) // don't announce more than once every 40 seconds , active_tracker_limit(1600) // don't announce to trackers more than once every 1.125 seconds diff --git a/src/twister.cpp b/src/twister.cpp index e02cfc94..57c21521 100644 --- a/src/twister.cpp +++ b/src/twister.cpp @@ -258,7 +258,7 @@ void ThreadMaintainDHTNodes() vector vAddr = addrman.GetAddr(); int totalNodesCandidates = (int)(vNodes.size() + vAddr.size()); if( (!dht_nodes && totalNodesCandidates) || - dht_nodes < totalNodesCandidates / 2 ) { + (dht_nodes < 5 && totalNodesCandidates > 10) ) { printf("ThreadMaintainDHTNodes: too few dht_nodes, trying to add some...\n"); BOOST_FOREACH(const CAddress &a, vAddr) { std::string addr = a.ToStringIP();