This repository has been archived by the owner on May 26, 2022. It is now read-only.
Possible deadlock in FindPeers #67
Labels
effort/hours
Estimated to take one or several hours
kind/bug
A bug in existing code (including security flaws)
status/ready
Ready to be worked
Hi, I don't know if this library still maintained, but if
chLen
is smaller thanc.prevPeers
a deadlock can occur here due to a full buffered channel, no?I suppose that the comparison in this line was intended to be the inverse logic:
chLen < len(c.prevPeers)
, which fix the deadlock.The text was updated successfully, but these errors were encountered: