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

fix prioritization of stream muxers #8750

Merged
merged 2 commits into from
Feb 28, 2022
Merged

fix prioritization of stream muxers #8750

merged 2 commits into from
Feb 28, 2022

Conversation

marten-seemann
Copy link
Member

Looks like we've been prioritizing mplex over yamux since at least June 2020. This is really, really bad.

Copy link
Member

@Stebalien Stebalien left a comment

Choose a reason for hiding this comment

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

Well, this is my new "most embarrassing mistake". I can confirm, and have no idea how we failed to notice. I guess most of the pprof profiles we've been looking at are from the gateways.

We should get this fix in, write a test.

@guseggert
Copy link
Contributor

Is there a way to add a test for this?

@Stebalien
Copy link
Member

Is there a way to add a test for this?

At a minimum, we can write a unit test for the prioritization logic. But we probably need to export some additional stats in libp2p all the way through the swarm for better tests.

@marten-seemann
Copy link
Member Author

I added a unit test for the prioritization logic.

@Stebalien Stebalien merged commit da08ace into master Feb 28, 2022
@Stebalien Stebalien deleted the fix-muxer-prios branch February 28, 2022 12:05
@BigLep
Copy link
Contributor

BigLep commented Mar 1, 2022

This should get called out in the release notes, basically that:

go-ipfs-new → go-ipfs-old|new will now use yamux instead of mplex.

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.

5 participants