Skip to content

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

Merged
romanb merged 2 commits intolibp2p:masterfrom
romanb:enable-multistream-parallel
Mar 1, 2021
Merged

[multistream-select] Re-enable 'parallel negotiation'.#1934
romanb merged 2 commits intolibp2p:masterfrom
romanb:enable-multistream-parallel

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