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

[webrtc-pc] RTCDataChannel.bufferedAmount value

From: Lennart Grahl via GitHub <sysbot+gh@w3.org>
Date: Mon, 02 Apr 2018 14:06:14 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issues.opened-310494046-1522677964-sysbot+gh@w3.org>
lgrahl has just created a new issue for https://github.com/w3c/webrtc-pc:

== RTCDataChannel.bufferedAmount value ==
A discussion started in https://github.com/w3c/web-platform-tests/issues/10126 what the value of `.bufferedAmount` should report directly after a `.send` call. I believe @soareschen got the interpretation right that `.bufferedAmount` is not supposed to be updated before the task yielded back to the event loop (or however it's called in JS).

But I want to know whether there's a particular reason why it needs to be that way (other than it being easier to test). And if there is no functional requirement, then I would suggest removing that restriction. It may be a bit annoying to test but I wouldn't want to restrict implementations from sending as soon as possible.

Even if we decide against this, we should consider updating the description of `bufferedAmount` since a bunch of people misinterpreted that description, including me. Only after having read @soareschen's comment and the description a dozen of times, I was able to slowly comprehend it.

Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1823 using your GitHub account
Received on Monday, 2 April 2018 14:06:18 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:44 UTC