Skip to content

Any implementations/alternatives for connmgr from go-libp2p in rust-libp2p? #4293

Closed Answered by dariusc93
harsh4786 asked this question in Q&A
Discussion options

You must be logged in to vote

At the moment the only thing close would be the connection limiter. rust-libp2p does have a form of connection management by which any connections that are not marked with keepAlive::Yes (or when KeepAlive::Until duration is up) would close after a specific amount of time, though this really varies since most protocols would compute such value to determine if it should be kept alive or not (this may change in the future though - see #4121, #4161, and #3844). You could make your own form of a connection manager behaviour by tracking activities from protocols emitting events and emitting some form of event back to the behaviour in which it would mark the connection based on different things…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by harsh4786
Comment options

You must be logged in to vote
1 reply
@dariusc93
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants