W3C home > Mailing lists > Public > public-webrtc@w3.org > May 2014

Re: Sending very large chunks over the data channel

From: Harald Alvestrand <harald@alvestrand.no>
Date: Wed, 28 May 2014 15:43:46 +0200
Message-ID: <5385E812.5030109@alvestrand.no>
To: public-webrtc@w3.org
On 05/28/2014 02:17 PM, IƱaki Baz Castillo wrote:
> 2014-05-28 14:04 GMT+02:00 Harald Alvestrand <harald@alvestrand.no>:
>>> This is JavaScript land. Why does not the browser just allocate space
>>> for *all* the data provided in send() calls and deals with EAGAIN and
>>> similar stuff internally? This is, send() NEVER fails, period. The
>>> browser holds the data and sends it when it can. The JS code still can
>>> check the bufferedAmount attribute in order to detect memory leaks due
>>> to slow sending.
>> That's what the API looks like now. Until it fails, it works.
> Not the same. I meant "send() MUST never fail".
http://www.w3.org/TR/XMLHttpRequest/#the-send()-method doesn't agree 
with you.
Received on Wednesday, 28 May 2014 13:44:21 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:17:58 UTC