-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Response to ls
message of multistream-select looks invalid
#1795
Comments
Our implementation probably predates multiformats/multistream-select#19 and thus at some point was actually spec-compliant 😇. |
Note that all messages that get |
As far as I can tell Does this imply that all rust-libp2p users interacting with go-libp2p users have at most 3 protocols to negotiate at a given point in time? Any suggestions on an upgrade strategy to eventually be compliant with the spec while not breaking compatibility with the previous rust-libp2p version?
|
I think that would be my preference and the most elegant solution. By disabling here I assume you mean just temporarily no longer making the dialer choose this strategy while at the same time still responding properly to |
It seems that in rust-libp2p the response to
ls
messages starts with the number of protocols.rust-libp2p/misc/multistream-select/src/protocol.rs
Line 203 in 8cec457
However the specs mention that it should start with the total size of the message:
https://github.com/multiformats/multistream-select#ls-example-in-detail
The text was updated successfully, but these errors were encountered: