-
Notifications
You must be signed in to change notification settings - Fork 1.1k
swarm/: Set dial concurrency factor default value to > 1 #2678
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
Comments
For some reason I am getting a But it seems that go-libp2p uses a dial concurrency factor of 8 if I'm not mistaken, it could be one of the other constants though as the terms are a bit convoluting. |
Sorry, kademlia-exporter.max-inden.de has some uptime issues currently. Posting a screenshot here for now:
Seems to be right 👍 |
Kademlia seems to be back up now, I created a PR #2741 |
Closing here with #2741 merged. |
Description
I propose increasing the default dial concurrency factor to some value larger than 1.
You can use https://kademlia-exporter.max-inden.de/d/Pfr0Fj6Mk/rust-libp2p (bottom) to determine how many addresses nodes advertise for the various libp2p networks.
Also worth checking what go-libp2p uses as a default value.
Motivation
Dialing addresses of a single dial concurrently gives a significant improvement in latency.
Feature was introduced in #2404.
Default value is set here:
rust-libp2p/swarm/src/connection/pool.rs
Lines 1164 to 1165 in 8361fab
//CC @dignifiedquire who has recently stumbled across this.
The text was updated successfully, but these errors were encountered: