Re: [rtcweb] #13: Transport of DATA_CHANNEL_OPEN

Michael Tuexen <Michael.Tuexen@lurchi.franken.de> Sat, 20 April 2013 19:34 UTC

Return-Path: <Michael.Tuexen@lurchi.franken.de>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2503D21F8653 for <rtcweb@ietfa.amsl.com>; Sat, 20 Apr 2013 12:34:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TPWIHrBxXl6u for <rtcweb@ietfa.amsl.com>; Sat, 20 Apr 2013 12:34:42 -0700 (PDT)
Received: from mail-n.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) by ietfa.amsl.com (Postfix) with ESMTP id 34AB221F85E8 for <rtcweb@ietf.org>; Sat, 20 Apr 2013 12:34:42 -0700 (PDT)
Received: from [192.168.1.102] (p54818039.dip0.t-ipconnect.de [84.129.128.57]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTP id 6D99F1C0B4617; Sat, 20 Apr 2013 21:34:34 +0200 (CEST)
Mime-Version: 1.0 (Apple Message framework v1283)
Content-Type: text/plain; charset="us-ascii"
From: Michael Tuexen <Michael.Tuexen@lurchi.franken.de>
In-Reply-To: <CABkgnnVJrapiaAK_XdgRd=9pK0Vass7+r5aPvHR_TqjNKG3Q9A@mail.gmail.com>
Date: Sat, 20 Apr 2013 21:34:33 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <4EF22AE7-A70C-4F15-A8B5-505050E0611A@lurchi.franken.de>
References: <066.3120a55540cacaa74ee5fda0b5273a48@trac.tools.ietf.org> <516CE3EC.2050804@jesup.org> <CABkgnnVaTOLa-hs7AtEgaTk7eq00bEkCY+_8L96Y8pooqybBxA@mail.gmail.com> <CAJrXDUFgxLT3-1HehKbg5byzifFi4Obe3XW9G4sbWRbnU+Hi1A@mail.gmail.com> <CABkgnnXr85LZyJiSF+ok2KMS_xQnS0CE4VBq4PvEhBBscn2QZQ@mail.gmail.com> <516F1AF9.2080301@alvestrand.no> <CABkgnnVtUjk4jSDVioxQnrt-b69Hx0nZLefs7tpEzETSmLXeNA@mail.gmail.com> <516F9A5A.6080402@alvestrand.no> <CABkgnnWrAMnm5fTWCNA1jqC_8Js0a6ewfSkvni4xg0E6rXdCtA@mail.gmail.com> <5170247F.4090908@alvestrand.no> <CABkgnnXU4HeJT-QwDcJ5NTvr72gZXxXi5zHFkQjJS__UXqzvtQ@mail.gmail.com> <BCBAB748-1079-4CE2-B8AB-AB09E9145C73@lurchi.franken.de> <CABkgnnVJrapiaAK_XdgRd=9pK0Vass7+r5aPvHR_TqjNKG3Q9A@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
X-Mailer: Apple Mail (2.1283)
Cc: "rtcweb@ietf.org" <rtcweb@ietf.org>
Subject: Re: [rtcweb] #13: Transport of DATA_CHANNEL_OPEN
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Real-Time Communication in WEB-browsers working group list <rtcweb.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/rtcweb>
List-Post: <mailto:rtcweb@ietf.org>
List-Help: <mailto:rtcweb-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 20 Apr 2013 19:34:43 -0000

On Apr 18, 2013, at 9:35 PM, Martin Thomson wrote:

> On 18 April 2013 11:44, Michael Tuexen <Michael.Tuexen@lurchi.franken.de> wrote:
>> What brings up a question, since I'm not really familiar with the JS API.
>> 
>> If I have a data channel dc and call close() on the data channel. Are
>> incoming messages still delivered, i.e. does onmessage still fire?
> 
> My expectation is that any pending onmessage events would be suppressed.
> 
And how do you close a datachannel without message loss?
I would prefer that if a reliable data channel gets set up, data gets
transferred and it is closed without any error indication, there is
no message loss.
I think this requires that onmessage fires in the CLOSING state.

Best regards
Michael