[Webkit-unassigned] [Bug 173052] RTCDataChannel connectivity issues in Safari 11

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 14 09:14:14 PDT 2017


--- Comment #12 from youenn fablet <youennf at gmail.com> ---
(In reply to Lennart Grahl from comment #10)
> Sorry for jumping in here but I have a few questions to youenn fablet's
> response from comment #7:
> > It seems that a lot of big messages (>200Ko) are tried to be sent through
> > RTCDataChannel, apparently more than the bandwidth available.
> I don't understand the correlation between available bandwidth and being
> able to send a message of size n? Can you elaborate?

If the web application sends more data than what the channel can actually send, this data must be buffered by the web engine.

RTCDataChannel.bufferedAmount should give this information.

> > If more data is sent, it is buffered up to 16Mo when the channel is closed,
> > hence the InvalidStateError.
> Why would the implementation buffer data on a non-open channel?

If the channel is not opened, an exception will happen and nothing will be buffered.
In the rtcgame case, the channel is opened and instead of sending a few bytes, we are probably wrongly sending 256 kb, quickly exploding the buffer.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170914/3220d81d/attachment.html>

More information about the webkit-unassigned mailing list