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

Re: DataChannel: how to know the max size of the sending buffer?

From: Iñaki Baz Castillo <ibc@aliax.net>
Date: Sun, 11 May 2014 20:50:13 +0200
Message-ID: <CALiegfm37cnJ0ptr0B43wkLmW0iUS5y2KTdu2V7Oz0by6pkcHg@mail.gmail.com>
To: Wolfgang Beck <wolfgang.beck01@googlemail.com>
Cc: "public-webrtc@w3.org" <public-webrtc@w3.org>
2014-05-11 20:09 GMT+02:00 Wolfgang Beck <wolfgang.beck01@googlemail.com>:
> On 05/10/14 15:26, Iñaki Baz Castillo wrote:
>> 2014-05-10 14:09 GMT+02:00 Wolfgang Beck <wolfgang.beck01@googlemail.com>:
>>> recv() would fail with an exception, when there is no data available,
>>> send() would fail with an exception, when the JS tried to send without
>>> waiting for a onsendspace() event.
>>
>> The problem is that the DataChannel JS API mimics the WebSocket JS API
>> (it is intentional), which behaves in the same way.
>>
> Ah, ok. Still a horribly clueless design. It may work for WebSockets
> which was intended for signaling events, not bulk data transfer.
>
> JS definitely needs a unified, composable way to deal with operations
> that may queue and block; WebSockets, Datachannels, File reader/write, etc.

Absolutely agreed.


-- 
Iñaki Baz Castillo
<ibc@aliax.net>
Received on Sunday, 11 May 2014 18:51:01 UTC

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