Skip to content
Discussion options

You must be logged in to vote

I think libp2p-connection-limits allow you to have an established connection per peer as well if you wish to give that a try, but you can create a behaviour that tracks the connections per peer and if there is any pending connections while there is also an existing connection from said peer, you can deny it. Although, you might want to keep in mind that if you are using a relay connection with dcutr you would likely have two connections with one being via relay and the other being a direct connection (the relay connection should eventually drop depending on configuration).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sirandreww-starkware
Comment options

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