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

Custom yamux mode #1691

Merged
merged 5 commits into from
Aug 17, 2020
Merged

Custom yamux mode #1691

merged 5 commits into from
Aug 17, 2020

Conversation

twittner
Copy link
Contributor

@twittner twittner commented Aug 5, 2020

Allow overriding the yamux mode which is currently selected depending on whether an inbound or outbound upgrade happens. Also add a method Builder::multiplex_ext which accepts a function which is applied to all available connection info and returns the actual upgrade.

For context see #1690.

This method exposes the connection info and connected point to a provided
function which creates the upgrade and can base the decision on `PeerId`
or other connection information such as IP address.
@romanb romanb merged commit 91d50b2 into libp2p:master Aug 17, 2020
@twittner twittner deleted the custom-yamux-mode branch August 17, 2020 08:22
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.

None yet

2 participants