Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase the limit of open libp2p connections #162

Closed
wants to merge 1 commit into from

Conversation

Maelkum
Copy link
Contributor

@Maelkum Maelkum commented Jul 24, 2024

This PR increases the number of open connections we tolerate. Default libp2p connection manager will prune open connections on each 10 seconds. If the number of connections is over 192, connections will be terminated until there are 160 connections open. Connections are spared from pruning for the initial minute.

This PR explicitly creates a connection manager that alters these limits by setting the limits to 1024/768.

@Maelkum Maelkum self-assigned this Jul 24, 2024
@Maelkum Maelkum requested a review from dmikey July 25, 2024 15:01
@dmikey
Copy link
Contributor

dmikey commented Aug 30, 2024

We should rebase this one, wondering if you feel we still need this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants