libp2p / libp2p/go-libp2p

swarm: rate limit establishing new connections

Open
#1,550 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

kind/bug kind/support need/community-input
Dominant language
Go
Stars
6.9k
Forks
1.3k
Avg merge
13d 21h
Merged PRs (30d)
1

Description

I'm on a new internet connection since a few weeks and I'm noticing interesting pattern with the ISP provided router - it can handle 1000s of connections just fine, but whenever I try to establish 100+ connections is a really short time (around 1 connection/ms), it just freezes for a few seconds or just dies (same with closing connections, but that's an issue for connmgr).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named. Start by reproducing the burst of new connections described in the issue and locating the connection-establishment path; completion would require an agreed rate-limiting behavior and validation that connection bursts no longer overwhelm the router.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.