Skip to content

libp2p_kad::handler No older substream waiting to be reused. Dropping new substream. #2957

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

You must be logged in to vote

To protect against DoS attacks, the kademlia implementation limits the amount of inbound streams that a single remote peer can open on one connection. This limit is currently set to 32 and not configurable.

I don't know kademlia in depth (@mxinden does) but 32 streams PER connection sounds like a fair amount to me. It essentially means that a single peer is currently keeping us busy with 32 concurrent requests. Once a request is serviced, the same substream can be re-used again. That is the reuse the message is talking about.

Essentially, this warning means that your node is under high load and (temporarily) refusing to service even more requests.

Replies: 2 comments 13 replies

Comment options

You must be logged in to vote
13 replies
@dignifiedquire
Comment options

@dignifiedquire
Comment options

@thomaseizinger
Comment options

@mxinden
Comment options

@thomaseizinger
Comment options

Answer selected by lynic
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants