Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Avoid infinite loop when a peer is evicted from routing table and add cached peer #566
If a bucket is full, later peers who requested connection were cached into
Previously, live check had a bug so check procedure repeats infinitely. This patch fixes such bug and added two test cases for the case and fixed one test case.
@@ Coverage Diff @@ ## master #566 +/- ## ========================================== + Coverage 90.59% 90.74% +0.15% ========================================== Files 202 202 Lines 15358 15514 +156 ========================================== + Hits 13913 14078 +165 + Misses 1155 1144 -11 - Partials 290 292 +2