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

feat(networking): single connection per direction #664

Closed
wants to merge 1 commit into from

Conversation

b-zee
Copy link
Contributor

@b-zee b-zee commented Aug 23, 2023

When the node dials peers for various reasons, this might be a dial while we already have an established connection. This isn't too much of a problem usually, but an optimization is to check for previously established connections and deny it if we already have one. This shouldn't alter any behaviour or cause errors to appear.

@reviewpad reviewpad bot requested a review from RolandSherwin August 23, 2023 14:28
@reviewpad reviewpad bot added Medium Medium sized PR waiting-for-review labels Aug 23, 2023
@b-zee b-zee force-pushed the feat-one-connection-per-direction branch from 5452b09 to 41d85b7 Compare August 30, 2023 12:56
@b-zee
Copy link
Contributor Author

b-zee commented Aug 31, 2023

Closing as there are a few tests failing on CI with this PR. It seems there needs to be some more thought going into this and at the moment it's not a priority at all as the total amount of connections seem relatively low. (Although weeks ago we had some situations that were a little worrying with more than say 5 connections between peers.)

@b-zee b-zee closed this Aug 31, 2023
@b-zee b-zee deleted the feat-one-connection-per-direction branch September 25, 2023 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Medium Medium sized PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant