W3C home > Mailing lists > Public > public-webrtc@w3.org > August 2016

[webrtc-pc] Need to specify what happens if `createDataChannel` is called with an invalid ID

From: Taylor Brandstetter via GitHub <sysbot+gh@w3.org>
Date: Wed, 17 Aug 2016 21:29:17 +0000
To: public-webrtc@w3.org
Message-ID: <issues.opened-171765049-1471469356-sysbot+gh@w3.org>
taylor-b has just created a new issue for 
https://github.com/w3c/webrtc-pc:

== Need to specify what happens if `createDataChannel` is called with 
an invalid ID ==
Currently, step 10 of `createDataChannel` instructs:

>  if the value of the id attribute is taken by an existing 
RTCDataChannel , throw a ResourceInUse exception and abort these 
steps.

However, there are situations where an id is unusable even though no 
existing `RTCDataChannel` with that ID exists. One unavoidable 
situation is when the requested ID is 65535 (the maximum value of a 
WebIDL `unsigned short`). This is also the maximum number of SCTP 
streams, which means the highest valid stream ID is 65534, since 
they're 0-based.

It's also possible for a WebRTC implementation to negotiate less than 
the maximum number of streams. Suppose 1000 streams are negotiated, 
and an application tries to create a data channel with stream ID 2000.
 When this happens, should an error be surfaced, or should the WebRTC 
implementation attempt to add 1001 additional streams using a 
RE-CONFIG message? If we prefer the latter, this behavior should 
probably be detailed in the rtcweb data channel spec.

Please view or discuss this issue at 
https://github.com/w3c/webrtc-pc/issues/746 using your GitHub account
Received on Wednesday, 17 August 2016 21:29:23 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:49 UTC