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

[multistream-select] Re-enable 'parallel negotiation'. #1934

Merged
merged 2 commits into from
Mar 1, 2021

Conversation

romanb
Copy link
Contributor

@romanb romanb commented Jan 25, 2021

This PR re-enables the "parallel negotiation" strategy for the dialer in multistream-select based on an estimate of the number of alternative protocols the dialer supports. In this strategy the dialer sends an ls request straight away to avoid repeated protocol proposals and roundtrips. Closes #1847.

Based on an estimate of the number of alternative
protocols the dialer supports.
Copy link
Member

@mxinden mxinden left a comment

Choose a reason for hiding this comment

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

Change looks good to me.

As far as I can tell the last patch of the series (#1811) is deployed with the recent Polkadot release v0.8.27.

I would expect it to be too early to break compatibility with versions < v0.8.27. What do you think? If so, I would suggest not yet merging this pull request until Polkadot v0.8.28 is released.

@romanb
Copy link
Contributor Author

romanb commented Jan 26, 2021

If so, I would suggest not yet merging this pull request until Polkadot v0.8.28 is released.

Sounds good to me.

@mxinden
Copy link
Member

mxinden commented Feb 28, 2021

With Polkadot v0.8.28-1 released, I think we can move forward here. Any objections @romanb @tomaka?

@romanb
Copy link
Contributor Author

romanb commented Mar 1, 2021

I will go ahead with merging this today if there are no objections.

@romanb romanb merged commit 51dba42 into libp2p:master Mar 1, 2021
@romanb romanb deleted the enable-multistream-parallel branch March 1, 2021 14:52
@romanb
Copy link
Contributor Author

romanb commented Mar 1, 2021

Published in multistream-select-0.10.2.

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.

[multistream-select] Re-enable use of ls for the dialer aka "parallel negotiation".
2 participants