Re: [rtcweb] Open data channel issues

Michael Tuexen <Michael.Tuexen@lurchi.franken.de> Tue, 04 March 2014 07:55 UTC

Return-Path: <Michael.Tuexen@lurchi.franken.de>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E8A501A03E5 for <rtcweb@ietfa.amsl.com>; Mon, 3 Mar 2014 23:55:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_DE=0.35, RP_MATCHES_RCVD=-0.547, SPF_HELO_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id N4wpo_8moisC for <rtcweb@ietfa.amsl.com>; Mon, 3 Mar 2014 23:55:30 -0800 (PST)
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 3C2451A03B5 for <rtcweb@ietf.org>; Mon, 3 Mar 2014 23:55:30 -0800 (PST)
Received: from [130.129.15.249] (unknown [130.129.15.249]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTP id 5C50A1C104304; Tue, 4 Mar 2014 08:55:26 +0100 (CET)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\))
From: Michael Tuexen <Michael.Tuexen@lurchi.franken.de>
In-Reply-To: <53158103.4000809@jesup.org>
Date: Tue, 4 Mar 2014 07:55:25 +0000
Content-Transfer-Encoding: quoted-printable
Message-Id: <1D3890D9-AF14-4648-820D-7586134D56DA@lurchi.franken.de>
References: <31B9253D-E826-4D07-A8A1-1B062B50F163@lurchi.franken.de> <530D9CC5.5080508@ericsson.com> <5312FBBC.5080006@jesup.org> <CAOJ7v-2GHt37u8raWDKquNFLCjSv-ptP0YGojPwuLv02da_m1Q@mail.gmail.com> <5313EC0D.9030808@jesup.org> <CAOJ7v-3L5_V2wuwVLKpz61VHey7yx3LnG_xrPLb5W+6DOLiEJw@mail.gmail.com> <53146B2C.8080008@jesup.org> <CABkgnnV1BdAMvFqGq8xiL0Zu28aZBCAdPwZB8whpMeXrCD7AHQ@mail.gmail.com> <53149F0C.6070001@jesup.org> <CAOJ7v-0xSq2xvF_5Do-R4SG6yAVNdqELwRvt_VBU69ir6nHhGQ@mail.gmail.com> <53154AA8.4000202@jesup.org> <CABkgnnVWESeVgrPjYnxuhB5w1QTjbXNW+zBLfYRwUL059Q0_hw@mail.gmail.com> <53158103.4000809@jesup.org>
To: Randell Jesup <randell-ietf@jesup.org>
X-Mailer: Apple Mail (2.1874)
Archived-At: http://mailarchive.ietf.org/arch/msg/rtcweb/LcWErxOjK2PWhzzJVrz4g1jwtSA
Cc: rtcweb@ietf.org
Subject: Re: [rtcweb] Open data channel issues
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.15
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: Tue, 04 Mar 2014 07:55:33 -0000

On 04 Mar 2014, at 07:30, Randell Jesup <randell-ietf@jesup.org> wrote:

> On 3/4/2014 2:00 AM, Martin Thomson wrote:
>> On 4 March 2014 03:38, Randell Jesup <randell-ietf@jesup.org> wrote:
>>> To take your suggestion:
>>> a) applications assume 16KB if ndata wasn't negotiated (per the current
>>> suggestion)
>>> b) implement ndata and EOR support in the browsers, and drop the 16KB limit
>>> when ndata is negotiated.
>>> All this needs is "is ndata supported by this association" exposed to the
>>> app; no sdp changes needed.  (One less dependency!)
>> 
>> Or, to avoid vestigal crap in the API in the end state, when you
>> install the 16K limitation, add an indicator that applications can
>> check.  Once you remove the cap, remove the indicator.
>> 
>> if (dataChannel.isNotVeryGood) {
>>   chunkMessage(message);
>> } else {
>>   dataChannel.send(message);
>> }
> 
> Yup, that works for me.  dataChannel.requiresFragmentation would be the wordy version or mustFragmentAt16K for self-documentation.
Or you return a number which gives you the limit if you don't want to specify the
16K limit...

Best regards
Michael
> 
> -- 
> Randell Jesup -- rjesup a t mozilla d o t com
> 
> _______________________________________________
> rtcweb mailing list
> rtcweb@ietf.org
> https://www.ietf.org/mailman/listinfo/rtcweb
>