Re: CONNECT and HTTP/2.0

William Chan (陈智昌) <willchan@chromium.org> Sun, 01 September 2013 22:30 UTC

Return-Path: <ietf-http-wg-request@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 0380911E82A3 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 1 Sep 2013 15:30:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.676
X-Spam-Level:
X-Spam-Status: No, score=-9.676 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_HI=-8]
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 xqov1jgYWU1m for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 1 Sep 2013 15:30:08 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 9127611E82A2 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 1 Sep 2013 15:30:08 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1VGG95-0004TR-GO for ietf-http-wg-dist@listhub.w3.org; Sun, 01 Sep 2013 22:29:23 +0000
Resent-Date: Sun, 01 Sep 2013 22:29:23 +0000
Resent-Message-Id: <E1VGG95-0004TR-GO@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <willchan@google.com>) id 1VGG8s-0004PQ-Ak for ietf-http-wg@listhub.w3.org; Sun, 01 Sep 2013 22:29:10 +0000
Received: from mail-ie0-f175.google.com ([209.85.223.175]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <willchan@google.com>) id 1VGG8r-0007vO-KQ for ietf-http-wg@w3.org; Sun, 01 Sep 2013 22:29:10 +0000
Received: by mail-ie0-f175.google.com with SMTP id u16so7075272iet.34 for <ietf-http-wg@w3.org>; Sun, 01 Sep 2013 15:28:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=yXQMdKzhH7C+2hJzODl6hjKOR68jJTtJNeEkIXnpwd4=; b=G4+dB77NZYjyFe8bm34JJdE+VB9oaE3Lr8JCb2sctwuvfev8xn3EzU9RwRXLUprXtw iXXAz/V2+AYG+v4NS0zWR1BQ3cCDmb/4OxUKIQKKcTuBgz6/9nCebJwO71GwgqiXwwWh l7Gxmv5eA62/nymu+Q1yN5nS/1FUbF2ALwKoHSEQXRnQAcoucsMyuq3Ok8xGef6cV0wq SFAIVnh15Y4Ui+qUVA5jmtXgjlh+WmPqbQAhx6GSA7ezpe2OOq70aDbWyaBIvpWqL8GK foIChUvFVFE6+JX1rr9mOF+dyc92kcBvGcVEs5J4th8T+gpw285CirrvP2kx1oa8bJsZ 7YyA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=yXQMdKzhH7C+2hJzODl6hjKOR68jJTtJNeEkIXnpwd4=; b=Y/jGlKmmbHxh8aLJylkURDsKBgkoe/Nc7p11bLqNeFYNjPy82zcFTWGzuH9/5i7Nn2 riHthbL5K+vXQddUv8+IrvnxvY/kseVCTtff+eEjhtqaUEWLEYD8RF89abmsDKUv6Lun pWXJJsC0hLklLQwyMVt4vqKcsME3dEx742EOk=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=yXQMdKzhH7C+2hJzODl6hjKOR68jJTtJNeEkIXnpwd4=; b=QtwLdX/7MCKhZ6aoAODJFMtdYDh83vMLrfdafSlyK2oyFxWZ61ydg1CX6qqrZ+kT4G ZH6WqRgFB3dvJtdlnbLgJulO9xyKSYsw0h1EzBZsN1S8HKSM5Cg/hBxwrkq34XjnRR3z R4iMv6wHTQjotEwb5BMguMJhdPmmU1MZxrOg2xWmFBXWHeED73aItRjHUn9UurPFZV2C X1YsBzRIX07cdaoXO0nzUC509jRp4sExtDNrIhVIC7ynO29Lzk7HpUfBTvf3hLG7YU/o 4A26RuONqLKphBN44NgbIMtzMI7i5JU+DEkIVqCxxUcsemLMyits35TykOPA7It00RPz NeRw==
X-Gm-Message-State: ALoCoQljxB1JihACfGlTsFKKOXb+WRRxgHUa0zWJD397IpAfl0qaAdwz8gHHlFMNk4c1bWgs2bEYW8sflaQkERkkYwBjEiy7YopxCtqZ/nP78DbDxHEJpcpECbIlgpiXOUA3DWc/SE+XaNTiCkDGZZhgNdR/5tBOryZ32eVw4T3pCcs5uoVeno+Hzi2nKocklU/h+qaNKP89
MIME-Version: 1.0
X-Received: by 10.50.225.103 with SMTP id rj7mr9779917igc.60.1378074522653; Sun, 01 Sep 2013 15:28:42 -0700 (PDT)
Sender: willchan@google.com
Received: by 10.231.69.132 with HTTP; Sun, 1 Sep 2013 15:28:42 -0700 (PDT)
In-Reply-To: <CABkgnnUfK=Ww=3_EFrPRsn7bdrXmNN8RRm-=NAsktRx+bWaSoA@mail.gmail.com>
References: <CABkgnnV5FF+-cP-PN0LJYqDL7=cFUE5a3Cbjcc3oxeW6sa60pQ@mail.gmail.com> <CAA4WUYgA+TyUBi7wktnJX+Gts7=1tDgMUdbzkTcf=8vwaO1jZQ@mail.gmail.com> <CABP7RbfTg-vtqwrf0riPuZ+vvdGaydcgqbDiygrpe2zTVSQLkA@mail.gmail.com> <CAJ_4DfTf1h=VhmDs3_kvHi325jhc5ZD2KN1BQRicAvc6z57SHA@mail.gmail.com> <CABP7Rbc+MD1jVC1z_y0GbNrFz3mOJfZ9ND4H-aJ4zvejDJTCTw@mail.gmail.com> <CAA4WUYh3ykBTJHFcFPncBZZen_NFzdjP=2sHYkn9i+0kn8-stg@mail.gmail.com> <CABkgnnVEw2+ey86y0rp=hR6QGjpmsXo=5JXVWBMUN1+7oioMsQ@mail.gmail.com> <CAA4WUYj7AgoBHRovKW098djqs4dO_HYsSqiBFrY3qDOvbMOYzw@mail.gmail.com> <CABkgnnUfK=Ww=3_EFrPRsn7bdrXmNN8RRm-=NAsktRx+bWaSoA@mail.gmail.com>
Date: Sun, 01 Sep 2013 15:28:42 -0700
X-Google-Sender-Auth: 40zm54e2U-rC-uopLPNkTlDlNBw
Message-ID: <CAA4WUYisWCKxHyV5+EV5FiJLRtcRCXbKtsuzsGbZR1uPtDoE5w@mail.gmail.com>
From: "William Chan (陈智昌)" <willchan@chromium.org>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: James M Snell <jasnell@gmail.com>, Ryan Hamilton <rch@google.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="001a11c3a8da65b6c104e559fad0"
Received-SPF: pass client-ip=209.85.223.175; envelope-from=willchan@google.com; helo=mail-ie0-f175.google.com
X-W3C-Hub-Spam-Status: No, score=-5.7
X-W3C-Hub-Spam-Report: AWL=-0.580, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-2.424, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1VGG8r-0007vO-KQ be5209726cfc239c82e861f13bb5f2f4
X-Original-To: ietf-http-wg@w3.org
Subject: Re: CONNECT and HTTP/2.0
Archived-At: <http://www.w3.org/mid/CAA4WUYisWCKxHyV5+EV5FiJLRtcRCXbKtsuzsGbZR1uPtDoE5w@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/19476
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>

On Sun, Sep 1, 2013 at 11:07 AM, Martin Thomson <martin.thomson@gmail.com>wrote:

> On 31 August 2013 23:28, William Chan (陈智昌) <willchan@chromium.org> wrote:
> > Yeah, I didn't really know how to spec that. Basically, the DATA frames
> form
> > the bidirectional tunnel.
>
> Then that's what you say :)
>
> > I'm not quite sure what else to say here, [...]
>
> The only thing that probably needs looking into is the effect that
> tunneling has on what the TLS layer will probably treat like TCP.
> That is, note how this potentially differs from TCP.  Frame sizes can
> be dealt with easily enough, but you also need to consider how it
> closes.  Maybe this leads to a requirement to treat END_STREAM like
> FIN (just as RST_STREAM is analogous to RST).
>

I was naturally assuming that END_STREAM==FIN in the tunnel. I guess we
need to specify it? How about adding the following paragraph:

=====
After successfully establishing a CONNECT tunnel over a stream, the stream
DATA frames comprise the data of the bidirectional tunnel. Each direction
of the tunnel is closed via the END_STREAM flag, similar to how TCP closes
each direction with its FIN flag. RST_STREAM abnormally terminates the
tunnel, similar to how TCP RSTs abnormally terminate the connection.
=====