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

Limit initial SeedNode connections when entering the network #648

Open
tegefaulkes opened this issue Dec 6, 2023 · 0 comments
Open

Limit initial SeedNode connections when entering the network #648

tegefaulkes opened this issue Dec 6, 2023 · 0 comments
Labels
development Standard development

Comments

@tegefaulkes
Copy link
Contributor

Specification

Currently there is a pretty dumb method of limiting the initial connections. We take the list of all seed nodes, sort them by distance and select the closest 3 nodes. This will limit the number of initial connections to seed nodes, but will cause problems if the 3 seed nodes selected happen to be down.

We need to use a smarter method here. Something that takes into account any failed connections. Such as concurrently attempt 3 connections until N connections are made and then proceed with the network entry.

Additional context

Tasks

  1. Implement a smarter method for limiting initial connections to seed nodes.
@tegefaulkes tegefaulkes added the development Standard development label Dec 6, 2023
@tegefaulkes tegefaulkes transferred this issue from MatrixAI/Polykey-CLI Dec 6, 2023
@CMCDragonkai CMCDragonkai changed the title limit initial SeedNode connections when entering the network Limit initial SeedNode connections when entering the network Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development Standard development
Development

No branches or pull requests

1 participant