Skip to content

Discovery Behaviour #3864

Closed Answered by thomaseizinger
Iamknownasfesal asked this question in Q&A
Discussion options

You must be logged in to vote

Two things:

  • In the latest libp2p version, connection_limits is deprecated, you should use the libp2p::connections_limits::Behaviour instead.
  • You kind of have to decide what you want:
    With a counter-based connection limit, we will disallow new connections if they exceed it. We cannot know ahead of time what the "purpose" of this connection is, i.e. whether it is an initial "bootstrap" connection or not. If you need a more flexible connection management, you are probably better of with implementing NetworkBehaviour yourself. Take a look at libp2p::connection_limits::Behaviour for some inspiration.

What happens if i not select any limit in Connection Limit on Swarm, does libp2p accept all…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Iamknownasfesal
Comment options

@Iamknownasfesal
Comment options

@thomaseizinger
Comment options

Answer selected by Iamknownasfesal
@Iamknownasfesal
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
2 participants