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

refactor: allow duplicate handshakes #2794

Merged
merged 3 commits into from
Feb 21, 2022
Merged

refactor: allow duplicate handshakes #2794

merged 3 commits into from
Feb 21, 2022

Conversation

acud
Copy link
Member

@acud acud commented Feb 7, 2022

As discussed while looking into various errors we've been running into on the libp2p abstraction level, it has been concluded that removing the duplicate handshake constraint is not beneficial and should be removed. It does not guard against anything, and duplicate handshakes are allowed even with this code section (since we can dial to a node and a node can dial back and there's no keeping track of the bidirectional connections). Furthermore, libp2p allows for multiple underlying connections and will use the best one when sending a message according to its internal heuristics of connection selection.


This change is Reviewable

Copy link
Contributor

@mrekucci mrekucci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @acud)

@acud acud force-pushed the remove-dupe-handshake branch from 0f6947a to de176fe Compare February 16, 2022 22:28
@acud acud merged commit cc80f74 into master Feb 21, 2022
@acud acud deleted the remove-dupe-handshake branch February 21, 2022 05:59
@aloknerurkar aloknerurkar added this to the 1.5.0 milestone Mar 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants