tronprotocol / libp2p

The p2p system implemented in java language
36 stars 19 forks source link

feature: optimize random disconnect #84

Closed 317787106 closed 4 months ago

317787106 commented 4 months ago

What does this PR do?

In the stratrgy of random disconnection, we will not disconnect from nodes that were active in the last notActiveInterval minutes. Parameter notActiveInterval can be configured by command line, default 5 minutes.

Why are these changes required?

This PR has been tested by:

Follow up

Extra details