multistream-select
implementation used by WebRTC doesn't conform to the spec
#75
Labels
bug
Something isn't working
Currently, we encode and send all protocols at once during
multistream-select
phase when opening WebRTC stream:litep2p/src/multistream_select/dialer_select.rs
Lines 273 to 278 in 337538f
This is against libp2p
multistream-select
spec, which states that protocols should be negotiated one-by-one.Also, the received protocols are also expected to be sent as a list:
litep2p/src/multistream_select/dialer_select.rs
Lines 294 to 295 in 337538f
This also doesn't conform to the spec.
Nevertheless, the above works with smoldot. This issue is about fixing the implementation, and, may be, filing a bug to smoldot if it doesn't conform to the spec either.
Originally discussed in #51 (comment).
The text was updated successfully, but these errors were encountered: