Re: [rtcweb] Sub-protocol registry update

Harald Alvestrand <harald@alvestrand.no> Wed, 16 March 2016 07:49 UTC

Return-Path: <harald@alvestrand.no>
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 2580F12D4FF for <rtcweb@ietfa.amsl.com>; Wed, 16 Mar 2016 00:49:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.201
X-Spam-Level:
X-Spam-Status: No, score=-4.201 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.001] autolearn=ham autolearn_force=no
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 jV5_Ce38U9yz for <rtcweb@ietfa.amsl.com>; Wed, 16 Mar 2016 00:49:45 -0700 (PDT)
Received: from mork.alvestrand.no (mork.alvestrand.no [158.38.152.117]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9611D12D528 for <rtcweb@ietf.org>; Wed, 16 Mar 2016 00:49:44 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by mork.alvestrand.no (Postfix) with ESMTP id E4CF47C79A0; Wed, 16 Mar 2016 08:49:42 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at alvestrand.no
Received: from mork.alvestrand.no ([127.0.0.1]) by localhost (mork.alvestrand.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vw8Xwxh2twHk; Wed, 16 Mar 2016 08:49:42 +0100 (CET)
Received: from hta-hippo.lul.corp.google.com (unknown [IPv6:2620:0:1043:1:79bd:223c:1078:159b]) by mork.alvestrand.no (Postfix) with ESMTPSA id 048547C7976; Wed, 16 Mar 2016 08:49:42 +0100 (CET)
To: Martin Thomson <martin.thomson@gmail.com>
References: <CA+9kkMCRPACwb+SEZXy7JsRWomHq9mwEJ=CgNye8Yo6pXhCk7w@mail.gmail.com> <56E856BB.4080502@alvestrand.no> <CABkgnnUL+oPyCAgaiFaA+fL=Eu04QpgypdRJ73Dbu+62sV1v7g@mail.gmail.com>
From: Harald Alvestrand <harald@alvestrand.no>
Message-ID: <56E91015.7040509@alvestrand.no>
Date: Wed, 16 Mar 2016 08:49:41 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1
MIME-Version: 1.0
In-Reply-To: <CABkgnnUL+oPyCAgaiFaA+fL=Eu04QpgypdRJ73Dbu+62sV1v7g@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/rtcweb/VZNjodJAJJnaLagEittLrT4UxRQ>
Cc: "rtcweb@ietf.org" <rtcweb@ietf.org>
Subject: Re: [rtcweb] Sub-protocol registry update
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.17
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: <https://mailarchive.ietf.org/arch/browse/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: Wed, 16 Mar 2016 07:49:47 -0000

On 03/16/2016 02:04 AM, Martin Thomson wrote:
> This looks fine.  I checked.
>
> I shouldn't have checked.
>
> "(╯°□°)╯︵ ┻━┻)" is a valid subprotocol name according to both the
> WebRTC spec and draft-ietf-rtcweb-data-protocol-09.  However, this is
> not permitted in thewebsocketprotocol.  RFC 6455 says that I can't
> register it, but what happens if I try to use it?

I don't think RFC 6455 restricts you to using registered values in the
protocol field - in fact section 1.9 contains the typical language of
someone who thinks that using a domain name as part of an identifier is
enough for uniqueness (which is true for such a large fraction of cases
that in most cases, the failures caused by this are far down the list of
issues one has to deal with).

So if you send  "(╯°□°)╯︵ ┻━┻)" to me, dealing with it is my problem.
As long as I can find any commas in it, I'm OK.

>
> FWIW, I have no problem whatsoever with the protocol accepting more
> values than might be permitted elsewhere.  But we should confirm that
> this is fine; acknowledging the highly advanced state of the protocol
> document (RFC editor queue, MISSREF).
>
> Maybe our friends in the WebRTC WG in the W3C (whoever they are)
> should address this.
>
> On 16 March 2016 at 05:38, Harald Alvestrand <harald@alvestrand.no> wrote:
>> On 03/15/2016 05:05 PM, Ted Hardie wrote:
>>
>> So, I'll wait a day or two more for objections, but folks on the websockets
>> side seem to be generally okay with this text:
>>
>> "The tokens registered in the Websockets sub-protocol registry created by
>> RFC 6445 Section 11.5 are matched using case-sensitive string match.

Of course "case-sensitive string match" is not well defined either :-)
(cue the dragons of NFC vs NFKC vs no-normalization).
But it's well defined for the ASCII subset that can be registered, which
I regard as "good enough".

>>   IANA
>> is, however, instructed to decline registrations in the registry which
>> differ only as to case, in order to minimize potential confusion among
>> different registered versions.  For other useful advice on avoiding
>> collision, registrants are encourage to consult the non-normative section
>> 1.9 of RFC 6445."
>>
>> (See the thread starting here:
>> https://mailarchive.ietf.org/arch/msg/hybi/Ax-UqERaQ1P8KDzroBTQYhocjt0.
>> Note especially Takeshi Yoshino's note, which points out that even
>> websockets needs this clarification, as the behavior of Chrome and Firefox
>> differs. )
>>
>> I think the cleanest approach here is a very short update to RFC 6445.
>> Anyone on this list have heartburn with that approach to resolving this?
>>
>>
>> I'm very happy with this approach and resolution.
>>
>>
>> regards,
>>
>> Ted
>>
>>
>>
>> _______________________________________________
>> rtcweb mailing list
>> rtcweb@ietf.org
>> https://www.ietf.org/mailman/listinfo/rtcweb
>>
>>
>>
>> _______________________________________________
>> rtcweb mailing list
>> rtcweb@ietf.org
>> https://www.ietf.org/mailman/listinfo/rtcweb
>>