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 11:54:09 +0200
Cc: public-webrtc@w3.org
Message-Id: <507F1232-9936-413F-9B22-6C5CA8BF78FF@lurchi.franken.de>
To: "Timothy B. Terriberry" <tterriberry@mozilla.com>
On Apr 12, 2012, at 11:22 AM, Timothy B. Terriberry wrote:

> Michael Tuexen wrote:
>> If a channel is not in OPEN, I would expect a send() call to fail. However, its return type
>> is void. Why? Or is it intended that the onerror callback is invoked?
> See this exchange from the whatwg list:
> http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2010-April/025942.html
> http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2010-August/027673.html
> As far as I can tell, the onerror callback is only invoked if the UA is required to "fail the connection" or "close the connection with prejudice" (see the last algorithm in this section: http://dev.w3.org/html5/websockets/#feedback-from-the-protocol), not when sending a message to an already-closed connection.
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...

Best regards
Received on Thursday, 12 April 2012 09:54:36 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:35:45 UTC