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

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

From: tim panton <thp@westhawk.co.uk>
Date: Wed, 7 May 2014 18:06:28 +0100
Cc: "public-webrtc@w3.org" <public-webrtc@w3.org>
Message-Id: <90C69AE2-86FA-4022-A550-3EDE99653905@westhawk.co.uk>
To: Iņaki Baz Castillo <ibc@aliax.net>

On 7 May 2014, at 17:47, Iņaki Baz Castillo <ibc@aliax.net> wrote:
> The point here is not about reliability but about message-boundary. In
> TCP you must really close the socket is data is lost. That is not true
> (not for all the use-cases) in DataChannel since you always receive a
> complete message (may be you have lost some messages or they are not
> ordered, but what you receive is always a full message).

Ok, so this is unreliabledc.send(myBigBlob);
where myBigBlob is probably bigger than the buffer on my IoT device?

That is knowable. This end knows how much buffer the far end said it still had free.
Throwing an error is reasonable. If the channel is reliable closing the channel is 
the right thing to do. If it its partial unordered , then the channel should survive.

Sounds like chrome does the correct thing, but the doc only covers the reliable case.

Received on Wednesday, 7 May 2014 17:06:57 UTC

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