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

p2p: limit connections made by dht and pubsub #6045

Open
algorandskiy opened this issue Jun 28, 2024 · 0 comments
Open

p2p: limit connections made by dht and pubsub #6045

algorandskiy opened this issue Jun 28, 2024 · 0 comments
Labels
Enhancement p2p Work related to the p2p project

Comments

@algorandskiy
Copy link
Contributor

Status

p2pNet calls DialPeersUntilTargetCount(n.config.GossipFanout) to maintain connections but DHT and PubSub maintain their own connections to algod peers. Since all these peers support multiple protocols including /algorand-ws/1.0.0, they establish such protocol stream.
There was a counter in p2p feature PR to drop this stream from non DialPeersUntilTargetCount connections but it only handles DHT. Leaving us in a situation where agreement traffic not exchanged but transactions are well exchanged via PubSub.

Expected

Need to have a way to limit total connections made by p2p node.

Solution

TBD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement p2p Work related to the p2p project
Projects
None yet
Development

No branches or pull requests

1 participant