fixed inverted peer connect rank. Used to connect to the least likely to work peer, instead of the most likely
This commit is contained in:
parent
60f299c8a8
commit
ea91a6e077
|
@ -40,6 +40,8 @@ release 0.14.4
|
||||||
* connect candidate calculation fix
|
* connect candidate calculation fix
|
||||||
* tightened up disk cache memory usage
|
* tightened up disk cache memory usage
|
||||||
* fixed magnet link parser to accept hex-encoded info-hashes
|
* fixed magnet link parser to accept hex-encoded info-hashes
|
||||||
|
* fixed inverted logic when picking which peers to connect to
|
||||||
|
(should mean a slight performance improvement)
|
||||||
|
|
||||||
release 0.14.3
|
release 0.14.3
|
||||||
|
|
||||||
|
|
|
@ -472,7 +472,7 @@ namespace libtorrent
|
||||||
if (!is_connect_candidate(pe, m_finished)) continue;
|
if (!is_connect_candidate(pe, m_finished)) continue;
|
||||||
|
|
||||||
if (candidate != m_peers.end()
|
if (candidate != m_peers.end()
|
||||||
&& !compare_peer(*candidate, pe, external_ip)) continue;
|
&& compare_peer(*candidate, pe, external_ip)) continue;
|
||||||
|
|
||||||
if (pe.last_connected
|
if (pe.last_connected
|
||||||
&& session_time - pe.last_connected <
|
&& session_time - pe.last_connected <
|
||||||
|
|
Loading…
Reference in New Issue