Re: 6455 Websockets and the relationship to HTTP

Kazuho Oku <kazuhooku@gmail.com> Fri, 02 December 2016 01:01 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B37C8129A38 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 1 Dec 2016 17:01:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.396
X-Spam-Level:
X-Spam-Status: No, score=-9.396 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-2.896, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 BO9rtaEDSeNg for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 1 Dec 2016 17:01:17 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 45075129A2B for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 1 Dec 2016 17:01:00 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cCcA6-0007nR-2c for ietf-http-wg-dist@listhub.w3.org; Fri, 02 Dec 2016 00:57:14 +0000
Resent-Date: Fri, 02 Dec 2016 00:57:14 +0000
Resent-Message-Id: <E1cCcA6-0007nR-2c@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <kazuhooku@gmail.com>) id 1cCc9z-0007lR-Ga for ietf-http-wg@listhub.w3.org; Fri, 02 Dec 2016 00:57:07 +0000
Received: from mail-wm0-f44.google.com ([74.125.82.44]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <kazuhooku@gmail.com>) id 1cCc9s-0007Ax-Vm for ietf-http-wg@w3.org; Fri, 02 Dec 2016 00:57:02 +0000
Received: by mail-wm0-f44.google.com with SMTP id g23so2687294wme.1 for <ietf-http-wg@w3.org>; Thu, 01 Dec 2016 16:56:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=SZtUiPCMo0EILgxlCVKiwujOC4Vt61hrqcdqnKrf8fo=; b=OkEIbX97VN4O18LqMtiAeeOJB19GpIW0EQ8BFeuvLzKaxhLxkHGQzJB9l5pTXYcutj jYi2Glk0zyNufDTepZjo2BmlHgePlD19aNX0u2jBNJkqjsLS0J9u5iSa9KC0U7q2tkvN +8YaZDTRC0cF3Bg+GHYqVH8JCXh4wpgLd7mQRQFNZumMVoXgTsgEAYCeKnB5REY/J1ls bhNRTGzelFQJFMStk/uOxvNDI1rJAc80Cpta5YfshvoURhCaFcWOG+S9Ur7d19GeB0Lx UgTm9vrs9VtS3jDoiEAlVKJPos3GhDZuN8UihOwH7bwC3ucSDZvbgZOiTBopjCX4D5Ve ylOA==
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; bh=SZtUiPCMo0EILgxlCVKiwujOC4Vt61hrqcdqnKrf8fo=; b=lanAqvo+b8SdJtLkbuA+y4wbBl81uWPNRi2j9xlIXccBf76NtruEhIQWJlGvBY8KaZ 40cy8WLwetMXpxrzhScLIV8iLTUPBlUSdsVoJmYvh06v8zSQbmijVlVmzhd/UQKIolXU v1+C6YBLIEMz5qFlmWOaJ0A+Dw15m62k4mmcvFFVAUrGEP8j39n8+7BLLrozrtRJX5h0 FiPqEhLHcU6NRpuqFsDQk6h6Cjrog1d4zc9WDEFm75vf5KQvU3IaQC8OiQxnXG2opKD7 4E8m2Etb9dgHhaSXT2KGXAOPJEi3gJAGJjyDipSei8NUCcVxqkU0wnsW/uVz58bd/ohj NuJw==
X-Gm-Message-State: AKaTC024F4Sh5qFx/9IN5TX5jLL3M4xffromry6I//gEFe8rgy0u11uXP3fBQNYYCqeFi4Kw6qmRq/+WNubf1w==
X-Received: by 10.28.146.201 with SMTP id u192mr493405wmd.142.1480640193587; Thu, 01 Dec 2016 16:56:33 -0800 (PST)
MIME-Version: 1.0
Received: by 10.194.32.1 with HTTP; Thu, 1 Dec 2016 16:56:32 -0800 (PST)
In-Reply-To: <CABkgnnVZeLQGES5Dige8u+ukSgqSfJNKiCuL=oK3gQnAb_3LNw@mail.gmail.com>
References: <CAOdDvNqk7W_oNWUismMb-ZuhvdboZNDQ0YV2BLsbka-FGC-7oA@mail.gmail.com> <39F32B28-7116-478A-B02A-E8310EA6E189@mnot.net> <CABkgnnVZeLQGES5Dige8u+ukSgqSfJNKiCuL=oK3gQnAb_3LNw@mail.gmail.com>
From: Kazuho Oku <kazuhooku@gmail.com>
Date: Fri, 2 Dec 2016 09:56:32 +0900
Message-ID: <CANatvzwoUYaC_YPTTF6fdwN5aOiwrttyH9Xj7xYVR1i1DZ27bA@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: Mark Nottingham <mnot@mnot.net>, Patrick McManus <pmcmanus@mozilla.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=001a1143c944c7713d0542a26832
Received-SPF: pass client-ip=74.125.82.44; envelope-from=kazuhooku@gmail.com; helo=mail-wm0-f44.google.com
X-W3C-Hub-Spam-Status: No, score=-4.3
X-W3C-Hub-Spam-Report: AWL=-0.786, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cCc9s-0007Ax-Vm 504fe9952c6803f8f0dc9daf6f0d2fcf
X-Original-To: ietf-http-wg@w3.org
Subject: Re: 6455 Websockets and the relationship to HTTP
Archived-At: <http://www.w3.org/mid/CANatvzwoUYaC_YPTTF6fdwN5aOiwrttyH9Xj7xYVR1i1DZ27bA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33077
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

2016-12-02 9:19 GMT+09:00 Martin Thomson <martin.thomson@gmail.com>om>:

> On 2 December 2016 at 11:09, Mark Nottingham <mnot@mnot.net> wrote:
> > In particular, my recollection of the outcome of the discussion of WS in
> H2 was that a new SETTING or a new ALPN token could be used to indicate
> that a connection supports both H2 and WS. If there's a problem with doing
> so, that would be good to talk about as well. Especially considering QUIC.
>
> There seems to be some reluctance to exercise that option.  I don't
> understand why; I've a bunch of candidate theories, but none of them
> make a lot of sense.
>
>
My understanding is that the cons of using SETTINGS only is that it
requires an additional roundtrip on connection establishment. I've heard
people oppose to the use of ALPN since they want to use both H2 and WS (and
possibly DNS?) on the same connection.

Personally, I think using both SETTINGS (or introducing a new frame) and
ALPN solves the shortcomings (and the reluctance). We could consider ALPN
as a method to specify the application protocol (e.g. HTTP or WS or DNS),
and use SETTINGS for permitting additional protocols to be coalesced.

-- 
Kazuho Oku