github selkies-project/selkies 2627489

pre-releaseone hour ago

fix(webrtc): Number data channels by the DTLS role, as RFC 8832 asks

RFC 8832 section 6 has the DTLS client open even stream ids and the DTLS
server odd ones. The SCTP layer took the parity from its side instead,
which follows the ICE role: an ICE-controlling server opened odd ids.
With a browser the server is the DTLS server, so that held by chance,
and under ICE-lite it did not. A client that answers DTLS-passive, as
the suites' webrtc-peer does, makes an ICE-controlling server the DTLS
client on odd ids, and rtc 0.21.2 now refuses such a channel. Those
sessions lost their data channel: no input, settings or connection
verdicts. The tier's connection_indicator-webrtc case caught it (Tests
47362988344); the loss-recovery cases do not use the channel.

The transport now keeps the role the handshake settled, and the server
hands it to Sctp, which numbers its channels by it whichever side sends
the INIT. Browsers take channels by label, so the ids they see changing
under ICE-lite is harmless. connection_indicator-webrtc now checks each
client gets its channel; both checks fail against the server before
this change.

Don't miss a new selkies release

NewReleases is sending notifications on new releases.