Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Improve managing connections to peers #63

Closed
Tracked by #1
matjazv opened this issue Feb 17, 2023 · 0 comments · Fixed by #89
Closed
Tracked by #1

Improve managing connections to peers #63

matjazv opened this issue Feb 17, 2023 · 0 comments · Fixed by #89
Assignees
Milestone

Comments

@matjazv
Copy link
Contributor

matjazv commented Feb 17, 2023

Description

If the number of connections exceeds the maximum allowed number of connections, some of those connections need to be closed. To manage such connections a Connection manager from libp2p may be used.

If the number of connections drops below the minimum number of connections, try to connect to some of the known peers manually without libp2p or gossipsub assistance.

To prevent an indefinite amount of time to be connected with any of non-fixed peers, randomly close connection at predefined time intervals.

Acceptance Criteria

  • Number of open connections doesn't exceed the maximum allowed number of connections.
  • Connections are randomly closed at predefined time intervals.
  • All new code is unit tested.

Additional Information

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

Successfully merging a pull request may close this issue.

2 participants