Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

M5 - implement min/max peers for ConnectionManager #137

Open
noot opened this issue Jan 20, 2022 · 0 comments
Open

M5 - implement min/max peers for ConnectionManager #137

noot opened this issue Jan 20, 2022 · 0 comments
Labels
Milestone

Comments

@noot
Copy link
Contributor

noot commented Jan 20, 2022

Task summary

we want to keep our peer count between a certain range at all times, this is specified by a minimum and maximum peer count. the ConnectionManager should handle this:

  • when a peer connects, if we are over the max peer count, disconnect from some other peer
  • when a peer disconnects, if we are under the min peer count, connect to some new peer (optionally, discover new peers if needed)

Other information and links

see https://github.com/MinaProtocol/mina/blob/9b763f675be3eaddc96dc53c86317065ee481a10/src/app/libp2p_helper/src/codanet.go#L197

@polarbeargo polarbeargo self-assigned this Jan 24, 2022
@creativcoder creativcoder added this to the m5 milestone Mar 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants