Skip to content

fix: skip muxer negotiation #3084

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

Merged
merged 2 commits into from
Apr 17, 2025
Merged

fix: skip muxer negotiation #3084

merged 2 commits into from
Apr 17, 2025

Conversation

achingbrain
Copy link
Member

Skips early muxer negotiation during noise handshake since WebRTC incorporates it's own muxer.

Fixes an edge case where a node is only configured with the WebRTC-Direct transport and no additional muxers.

Refs: ChainSafe/js-libp2p-noise#519
Refs: https://github.com/ipshipyard/roadmaps/issues/22

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

Skips early muxer negotiation during noise handshake since WebRTC
incorporates it's own muxer.

Fixes an edge case where a node is only configured with the
WebRTC-Direct transport and no additional muxers.
@achingbrain achingbrain requested a review from a team as a code owner April 16, 2025 12:20
Copy link
Member

@maschad maschad left a comment

Choose a reason for hiding this comment

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

The https://github.com/ipshipyard/roadmaps/issues/22 is broken but based on ChainSafe/js-libp2p-noise#519 this makes sense.

Question wouldn't this also apply to webtransport as well since it uses TLS?

Nevermind I just saw #3081 was merged 😅

@achingbrain
Copy link
Member Author

The https://github.com/ipshipyard/roadmaps/issues/22 is broken

It's a tracking issue for maintenance & stewardship work done on js-libp2p to help with future funding requests from the libp2p foundation. @cewood tells me it's going to be made public at some point in the near future.

@achingbrain achingbrain merged commit 6f96de8 into main Apr 17, 2025
44 of 47 checks passed
@achingbrain achingbrain deleted the fix/skip-muxer-negotiation branch April 17, 2025 07:33
@achingbrain achingbrain mentioned this pull request Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants