From 5a881191d0308a4952424b4335d3b6b3502783c3 Mon Sep 17 00:00:00 2001 From: Yat Ho Date: Sat, 9 Nov 2024 02:44:27 +0800 Subject: [PATCH] fix: allow unreachable peers to be retried (#6975) `tr_peer_info::reconnect_interval_has_passed()` contains logic to increase the reconnect interval for unreachable peers, but it has no effect at all currently because they wouldn't be tried in the first place. --- libtransmission/peer-mgr.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libtransmission/peer-mgr.cc b/libtransmission/peer-mgr.cc index 159e9ffa3..ea1f3bc02 100644 --- a/libtransmission/peer-mgr.cc +++ b/libtransmission/peer-mgr.cc @@ -2427,12 +2427,6 @@ namespace connect_helpers /* is this atom someone that we'd want to initiate a connection to? */ [[nodiscard]] bool is_peer_candidate(tr_torrent const* tor, tr_peer_info const& peer_info, time_t const now) { - // have we already tried and failed to connect? - if (auto const conn = peer_info.is_connectable(); conn && !*conn) - { - return false; - } - // not if we're both upload only and pex is disabled if (tor->is_done() && peer_info.is_upload_only() && !tor->allows_pex()) {