W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > April 2019

[webrtc-pc] DataChannel max value for "id" before connecting? (#2158)

From: Harald Alvestrand via GitHub <sysbot+gh@w3.org>
Date: Tue, 02 Apr 2019 08:49:19 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issues.opened-428098928-1554194958-sysbot+gh@w3.org>
alvestrand has just created a new issue for https://github.com/w3c/webrtc-pc:

== DataChannel max value for "id" before connecting? ==
Current spec says:

18. If [[DataChannelId]] is equal to 65535, which is greater than the maximum allowed ID of 65534 but still qualifies as an unsigned short, throw a TypeError.

20. Let transport be the connection's [[SctpTransport]] slot.

If the [[DataChannelId]] slot is not null, transport is in the connected state and [[DataChannelId]] is greater or equal to the transport's [[MaxChannels]] slot, throw an OperationError.

If the implementation knows that it will propose a max channels smaller than 65535 in negotiation, this seems like a somewhat strange decision - even though we know that the number will be rejected, we're accepting it on channel creation.

Should this be changed?


Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/2158 using your GitHub account
Received on Tuesday, 2 April 2019 08:49:22 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 4 June 2019 15:32:56 UTC