-
Notifications
You must be signed in to change notification settings - Fork 446
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
chore: support yamux to wherever mplex is supported #1579
chore: support yamux to wherever mplex is supported #1579
Conversation
It may be wise to merge this after #1533 is merged due to potential conflicts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stream muxers are negotiated in the order in which they are configured - if mplex is first and both peers support mplex, only mplex will be used.
Yamux appears to be configured behind mplex everywhere here so it's not actually going to be used in the tests.
Is there any particular reason for enforcing this? I know that Yamux should be used over mplex so should we default to Yamux and allow Mplex to be configured in the case where a consumer wants to provide backward-compatibility with legacy nodes? |
I think @achingbrain is saying that it should be reversed: i.e. |
@maschad : what are the next steps here to complete this? Does ChainSafe/js-libp2p-yamux#26 need to get landed? I see it as marked as draft. What do we need to to for it to get reviewed? This work isn't urgent is important. It seems like every month in IPFS-land we hit bumps around still needing to fallback to mplex because yamux hasn't been rolled out more broadly or at least isn't on by default in new versions. |
Yes @BigLep that's correct. I have some remaining work on ChainSafe/js-libp2p-yamux#26 to ensure it's throwing the correct error when the stream resets, before it can be reviewed. I will prioritize that this week. |
efdf585
to
79e82d5
Compare
|
Should this be included in #1707 @achingbrain |
Closes #1578