renproject / aw

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

Peer expiry #86

Closed rahulghangas closed 3 years ago

rahulghangas commented 3 years ago

This PR adds logic so that on failure of sending a message, a new expiry object is created for the signatory (peer). If after the minimum expiry duration no connection can be established with the peer, the peer is deleted from the peer table and unlinked from the transport layer

tok-kkk commented 3 years ago

I tested this change in darknode and didn't help. I checked the code, the Peer.Send function doesn't get called anywhere. Maybe we need to do something similar ti transport.Send.

rahulghangas commented 3 years ago

Oh wait, right. Fixing that