From 6d128d1ac47f199640d843783c5506079006585e Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Fri, 7 Mar 2014 12:03:21 -0300 Subject: [PATCH] increase tolerance for possiblyNeighbor check to reduce occurence of putData "ignoring request" --- libtorrent/src/kademlia/node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtorrent/src/kademlia/node.cpp b/libtorrent/src/kademlia/node.cpp index f1a14a8b..9511fb65 100644 --- a/libtorrent/src/kademlia/node.cpp +++ b/libtorrent/src/kademlia/node.cpp @@ -1312,7 +1312,7 @@ void node_impl::incoming_request(msg const& m, entry& e) // check distance between target, nodes and our own id // n is sorted from closer(begin) to more distant (end) nodes_t n; - m_table.find_node(target, n, 0); + m_table.find_node(target, n, 0, m_table.bucket_size() * 2); bool possiblyNeighbor = false; if( n.size() < m_table.bucket_size() ) { possiblyNeighbor = true;