W3C home > Mailing lists > Public > public-webrtc@w3.org > April 2012

Re: Proposal for API for Data

From: Michael Tuexen <Michael.Tuexen@lurchi.franken.de>
Date: Thu, 12 Apr 2012 12:02:27 +0200
Cc: public-webrtc@w3.org
Message-Id: <9476A232-02E1-49D3-871F-CD164A70C86C@lurchi.franken.de>
To: Timothy B. Terriberry <tterriberry@mozilla.com>
On Apr 12, 2012, at 11:57 AM, Timothy B. Terriberry wrote:

> Michael Tuexen wrote:
>> OK, so what should happen when send() is called on a data channel which is CLOSING or CLOSED?
>> Buffering the data knowing that it never can be transmitted seems no right to me...
> 
> The variable bufferedAmount is increased. The data isn't (or shouldn't be!) actually buffered.
Hmm. So telling the user that everything is fine, the message is buffered and will be delivered,
but actually it won't.
Not the way send() is handled at the socket layer, but if it is common at the JS API...

Thanks for the clarification

Best regards
Michael

> 
> 
Received on Thursday, 12 April 2012 10:02:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 12 April 2012 10:02:56 GMT