Re: [hybi] WebSocket subprotocol parameters

Takeshi Yoshino <tyoshino@google.com> Mon, 20 January 2014 08:35 UTC

Return-Path: <tyoshino@google.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 095F41A009F for <hybi@ietfa.amsl.com>; Mon, 20 Jan 2014 00:35:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.913
X-Spam-Level:
X-Spam-Status: No, score=-1.913 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RP_MATCHES_RCVD=-0.535, SPF_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 tyz9rrq6PsDa for <hybi@ietfa.amsl.com>; Mon, 20 Jan 2014 00:35:56 -0800 (PST)
Received: from mail-wg0-x234.google.com (mail-wg0-x234.google.com [IPv6:2a00:1450:400c:c00::234]) by ietfa.amsl.com (Postfix) with ESMTP id 09E0E1A00A4 for <hybi@ietf.org>; Mon, 20 Jan 2014 00:35:55 -0800 (PST)
Received: by mail-wg0-f52.google.com with SMTP id b13so6633766wgh.7 for <hybi@ietf.org>; Mon, 20 Jan 2014 00:35:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=KSZcIMgqda4VCuX6GVTvQ0QhyPOCBZ4GhwV1S34SJkw=; b=ZqO/7H81zIPH8eeN/zsObbbQNLEau5ir0Rk854qa2bcmKt4zLObP9Iff+dRsFck6V3 yXgpZ47LwwMseawjtq/7gk5CLZ77IcpYna71+79apX91HwcgIgxUDlKmTtbanSr8tjQI GNrKy2BPLNZ5dAfOfmq/dOgPThLQsro6NThBSTf9mTMah/pz5AJHIrO8ams2dV9x6TaA oTepns2QT2hdAfeQy5Gg3jyzYjoBzVK4ZWIY7eg1OkxMICsoYEMtRrMKe3E6DtGfiF4P JjypftGs0hq333kdudEcyoEXYqIUgD1zjDNDvY5KGM+LBSYGwC292MR1ey8a6ZgFIBGL /iRQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=KSZcIMgqda4VCuX6GVTvQ0QhyPOCBZ4GhwV1S34SJkw=; b=Vjxj+adNUhFTCO3aNae+aMa7x3eTBDYtecmuzL+Tt2L9aDwbY4OUxNbck3hJjsK7Wn IUbqKHFU/ec5NJVDYPk7Vjg44vF4NmhlRQLb0UrxuV81YKRCCl9lGXcI5AQMF+qWvG0M jV+Xif86Eb/ygDJLHMhrAd8CcuqKGsPHPcdWRtKmx6wbFmYRzjz3F1Wb0j1aSjyTb5qs 6idVEgA/wEOwj14oFF3mP/3zyzSqNSSDARMshR5N9geiTVqaB+QBvNpZxAkjHkBydyYw cWxCtvg40ChXLzsKDJlnGtmiX3VCHc6inNo5BoaOfSoME1KtsQ9vwkNX+zQUpYHM09CF cvJA==
X-Gm-Message-State: ALoCoQl1Jp86D1Vy/pQ5NrTVgWYvyJ4CGI0FR4p3o6s7L9jnpugZdct6DvNO5CrbVZMTg7RJWTxUC6AcZ64jVTL+gCPlU22I9+f0lmcyO7gsidCb0e7X4GKIG/zQqPibE9XtL8whsqxHJA5Kr75XzFoJT49TBgT/sq6cstKRKTz5DiU92ttTNHD8YxAVMUWQ1jCsqokweuRf
X-Received: by 10.194.63.228 with SMTP id j4mr13376984wjs.34.1390206955791; Mon, 20 Jan 2014 00:35:55 -0800 (PST)
MIME-Version: 1.0
Received: by 10.194.8.231 with HTTP; Mon, 20 Jan 2014 00:35:34 -0800 (PST)
In-Reply-To: <634914A010D0B943A035D226786325D4446BF9949D@EXVMBX020-12.exch020.serverdata.net>
References: <634914A010D0B943A035D226786325D4446BF9948F@EXVMBX020-12.exch020.serverdata.net> <52D90F99.6080205@gmx.de> <634914A010D0B943A035D226786325D4446BF9949D@EXVMBX020-12.exch020.serverdata.net>
From: Takeshi Yoshino <tyoshino@google.com>
Date: Mon, 20 Jan 2014 17:35:34 +0900
Message-ID: <CAH9hSJZQ3NxVW36PnZ0TpMF4tPPaJLr12M8NtbPb6pUejf1wcQ@mail.gmail.com>
To: Tobias Oberstein <tobias.oberstein@tavendo.de>
Content-Type: multipart/alternative; boundary="047d7ba97f3ac3cee504f062c71b"
Cc: Julian Reschke <julian.reschke@gmx.de>, "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] WebSocket subprotocol parameters
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi/>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 20 Jan 2014 08:35:58 -0000

On Fri, Jan 17, 2014 at 10:01 PM, Tobias Oberstein <
tobias.oberstein@tavendo.de> wrote:

> > > Was there any good reason disallowing parameters for "Sec-WebSocket-
> > Protocol"?
> >
> > I think that was discussed and the decision was made on purpose. For
> details
> > you'll have to visit the mailing list archives though.
>
> I can't find it .. searching the Hybi archives is a pain ..


I can't recall such discussion.

In this thread, Brodie used an example similar to that, but the main topic
of the post was to update the spec to include multiple subprotocol offer
mechanism.
http://www.ietf.org/mail-archive/web/hybi/current/msg04467.html

In this long thread, what character should be used for subprotocol is
discussed. Some people preferred more liberal rule, but no one discussed
qvalue-like grammar.
http://www.ietf.org/mail-archive/web/hybi/current/msg00913.html

Subprotocol History FYI:

We added the constraint "U+0021 ..  U+007E" from
http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-31 -> 32

Single value -> multiple value (SP-separated)
http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-02 -> 03

We made it follow 1#(token | quoted-string) ABNF from
http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-03 -> 04

Changed from (token | quoted-string) to token
http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-07