Re: Sending very large chunks over the data channel

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