w3c / webrtc-pc

WebRTC 1.0 API
https://w3c.github.io/webrtc-pc/
Other
439 stars 115 forks source link

Unspecified whether the data channel error event fires from SCTP ABORT #2984

Open jan-ivar opened 3 months ago

jan-ivar commented 3 months ago

The spec mentions only two sources of "data-channel-failure":

  1. § 6.2.6 Error on creating data channels
  2. SLD/sRD(answer): "If no available ID could be generated, set channel.[[ReadyState]] to "closed", and add channnel to errorList."

The first one fires error then close, the second only error. A mistake?

But we probably also need a new section on what to do with datachannel runtime errors like receiving SCTP ABORT.

According to https://wpt.fyi/results/webrtc/RTCDataChannel-close.html both error and close should fire.

We should probably align with implementations here.