renproject / aw

A flexible P2P networking library for upgradable distributed systems.
MIT License
38 stars 18 forks source link

IP address doesn't get deleted from table if custom receive is used #68

Closed rahulghangas closed 3 years ago

rahulghangas commented 3 years ago

If a custom peer.Receive() call is used with peer.transport.Run() instead of just calling peer.Run(), the IP address might never get deleted from the hash table. This is because IP address deletion happens in peer discovery and a custom receive function might not use peer discovery at all.

rahulghangas commented 3 years ago

Resolved by #79