RE: HTTP 2.0 "Upgrade" flow

Gabriel Montenegro <Gabriel.Montenegro@microsoft.com> Wed, 17 April 2013 17:05 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 F294921F8A80 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 17 Apr 2013 10:05:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.467
X-Spam-Level:
X-Spam-Status: No, score=-7.467 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, UNRESOLVED_TEMPLATE=3.132]
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 y7xB-jjnV0+K for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 17 Apr 2013 10:05:16 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 4F06921F8A1B for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 17 Apr 2013 10:05:16 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1USVmV-0004Cn-Gz for ietf-http-wg-dist@listhub.w3.org; Wed, 17 Apr 2013 17:04:27 +0000
Resent-Date: Wed, 17 Apr 2013 17:04:27 +0000
Resent-Message-Id: <E1USVmV-0004Cn-Gz@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <Gabriel.Montenegro@microsoft.com>) id 1USVmS-0004BR-Dc for ietf-http-wg@listhub.w3.org; Wed, 17 Apr 2013 17:04:24 +0000
Received: from mail-by2lp0240.outbound.protection.outlook.com ([207.46.163.240] helo=na01-by2-obe.outbound.protection.outlook.com) by lisa.w3.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from <Gabriel.Montenegro@microsoft.com>) id 1USVmR-0001x3-90 for ietf-http-wg@w3.org; Wed, 17 Apr 2013 17:04:24 +0000
Received: from BY2FFO11FD018.protection.gbl (10.1.15.203) by BY2FFO11HUB024.protection.gbl (10.1.14.138) with Microsoft SMTP Server (TLS) id 15.0.675.0; Wed, 17 Apr 2013 17:03:56 +0000
Received: from TK5EX14MLTC102.redmond.corp.microsoft.com (131.107.125.37) by BY2FFO11FD018.mail.protection.outlook.com (10.1.14.106) with Microsoft SMTP Server (TLS) id 15.0.675.0 via Frontend Transport; Wed, 17 Apr 2013 17:03:56 +0000
Received: from va3outboundpool.messaging.microsoft.com (157.54.51.81) by mail.microsoft.com (157.54.79.180) with Microsoft SMTP Server (TLS) id 14.2.318.3; Wed, 17 Apr 2013 17:03:33 +0000
Received: from mail184-va3-R.bigfish.com (10.7.14.252) by VA3EHSOBE006.bigfish.com (10.7.40.26) with Microsoft SMTP Server id 14.1.225.23; Wed, 17 Apr 2013 17:02:09 +0000
Received: from mail184-va3 (localhost [127.0.0.1]) by mail184-va3-R.bigfish.com (Postfix) with ESMTP id 29BBD20A22 for <ietf-http-wg@w3.org.FOPE.CONNECTOR.OVERRIDE>; Wed, 17 Apr 2013 17:02:09 +0000 (UTC)
X-Forefront-Antispam-Report-Untrusted: CIP:157.56.240.21; KIP:(null); UIP:(null); (null); H:BL2PRD0310HT003.namprd03.prod.outlook.com; R:internal; EFV:INT
X-SpamScore: -3
X-BigFish: PS-3(zz3071Mdb82hzz1f42h1fc6h1ee6h1de0h1fdah1202h1e76h1d1ah1d2ahzzz31h2a8h668h839h944hd24hf0ah1220h1288h12a5h12a9h12bdh137ah13b6h1441h1504h1537h153bh162dh1631h1758h18e1h1946h19b5h19ceh1ad9h1b0ah9a9j1155h)
Received-SPF: softfail (mail184-va3: transitioning domain of microsoft.com does not designate 157.56.240.21 as permitted sender) client-ip=157.56.240.21; envelope-from=Gabriel.Montenegro@microsoft.com; helo=BL2PRD0310HT003.namprd03.prod.outlook.com ; .outlook.com ;
X-Forefront-Antispam-Report-Untrusted: SFV:SKI; SFS:; DIR:OUT; SFP:; SCL:-1; SRVR:BN1PR03MB069; H:BN1PR03MB072.namprd03.prod.outlook.com; LANG:en;
Received: from mail184-va3 (localhost.localdomain [127.0.0.1]) by mail184-va3 (MessageSwitch) id 1366218127421086_16934; Wed, 17 Apr 2013 17:02:07 +0000 (UTC)
Received: from VA3EHSMHS029.bigfish.com (unknown [10.7.14.242]) by mail184-va3.bigfish.com (Postfix) with ESMTP id 61EEB240056; Wed, 17 Apr 2013 17:02:07 +0000 (UTC)
Received: from BL2PRD0310HT003.namprd03.prod.outlook.com (157.56.240.21) by VA3EHSMHS029.bigfish.com (10.7.99.39) with Microsoft SMTP Server (TLS) id 14.1.225.23; Wed, 17 Apr 2013 17:02:05 +0000
Received: from BN1PR03MB069.namprd03.prod.outlook.com (10.255.225.153) by BL2PRD0310HT003.namprd03.prod.outlook.com (10.255.97.38) with Microsoft SMTP Server (TLS) id 14.16.299.2; Wed, 17 Apr 2013 17:02:03 +0000
Received: from BN1PR03MB072.namprd03.prod.outlook.com (10.255.225.156) by BN1PR03MB069.namprd03.prod.outlook.com (10.255.225.153) with Microsoft SMTP Server (TLS) id 15.0.670.13; Wed, 17 Apr 2013 17:02:02 +0000
Received: from BN1PR03MB072.namprd03.prod.outlook.com ([169.254.10.181]) by BN1PR03MB072.namprd03.prod.outlook.com ([169.254.10.181]) with mapi id 15.00.0670.000; Wed, 17 Apr 2013 17:02:02 +0000
From: Gabriel Montenegro <Gabriel.Montenegro@microsoft.com>
To: Mark Nottingham <mnot@mnot.net>
CC: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>, Ilya Grigorik <ilya@igvita.com>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Thread-Topic: HTTP 2.0 "Upgrade" flow
Thread-Index: AQHOOVVdLTEXc0NMv0CgvQ05Ko8hA5jWPnaAgANU3FCAALPJgIAAXiGw
Date: Wed, 17 Apr 2013 17:02:01 +0000
Message-ID: <90099830fdb44516902b45476a184b92@BN1PR03MB072.namprd03.prod.outlook.com>
References: <CAKRe7JEiryo+Z4m2OMLibY2c4Eb5nZjfEMzoaADKNvshohh7eQ@mail.gmail.com> <20130414213939.GA6299@LK-Perkele-VII> <466ca70e40a648d0a691f550d1bf2e9a@BN1PR03MB072.namprd03.prod.outlook.com> <B170DCAB-AA5F-4850-9FAB-C04BB2414C18@mnot.net>
In-Reply-To: <B170DCAB-AA5F-4850-9FAB-C04BB2414C18@mnot.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [24.17.62.250]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OrganizationHeadersPreserved: BN1PR03MB069.namprd03.prod.outlook.com
X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn%
X-FOPE-CONNECTOR: Id%59$Dn%IGVITA.COM$RO%2$TLS%6$FQDN%corpf5vips-237160.customer.frontbridge.com$TlsDn%
X-FOPE-CONNECTOR: Id%59$Dn%W3.ORG$RO%2$TLS%6$FQDN%corpf5vips-237160.customer.frontbridge.com$TlsDn%
X-FOPE-CONNECTOR: Id%59$Dn%MNOT.NET$RO%2$TLS%6$FQDN%corpf5vips-237160.customer.frontbridge.com$TlsDn%
X-FOPE-CONNECTOR: Id%59$Dn%ELISANET.FI$RO%2$TLS%6$FQDN%corpf5vips-237160.customer.frontbridge.com$TlsDn%
X-CrossPremisesHeadersPromoted: TK5EX14MLTC102.redmond.corp.microsoft.com
X-CrossPremisesHeadersFiltered: TK5EX14MLTC102.redmond.corp.microsoft.com
X-Forefront-Antispam-Report: CIP:131.107.125.37; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(189002)(199002)(124014001)(81542001)(65816001)(33646001)(59766001)(23726002)(54316002)(47776003)(76482001)(63696002)(20776003)(4396001)(80022001)(54356001)(50986001)(46102001)(50466001)(56776001)(49866001)(47736001)(69226001)(47976001)(77982001)(79102001)(51856001)(66066001)(561944001)(74502001)(74662001)(53806001)(56816002)(47446002)(6806003)(81342001)(16676001)(46406003)(44976003)(31966008)(24736002); DIR:OUT; SFP:; SCL:1; SRVR:BY2FFO11HUB024; H:TK5EX14MLTC102.redmond.corp.microsoft.com; RD:InfoDomainNonexistent; MX:1; A:1; LANG:en;
X-OriginatorOrg: microsoft.onmicrosoft.com
X-Forefront-PRVS: 081904387B
Received-SPF: pass client-ip=207.46.163.240; envelope-from=Gabriel.Montenegro@microsoft.com; helo=na01-by2-obe.outbound.protection.outlook.com
X-W3C-Hub-Spam-Status: No, score=-2.5
X-W3C-Hub-Spam-Report: AWL=-3.181, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, UNRESOLVED_TEMPLATE=0.716
X-W3C-Scan-Sig: lisa.w3.org 1USVmR-0001x3-90 fd05e52447fa03ae2ed61b6bd67bad4e
X-Original-To: ietf-http-wg@w3.org
Subject: RE: HTTP 2.0 "Upgrade" flow
Archived-At: <http://www.w3.org/mid/90099830fdb44516902b45476a184b92@BN1PR03MB072.namprd03.prod.outlook.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/17291
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>

> Personally, I'm not thrilled with how the server session header is conflated
> with a SETTINGS frame... if we're going to require that the server send a
> SETTINGS frame first (which is fine), let's just come out and say that, rather
> than making it a side effect of requiring a (largely fictional) server session
> header.

The spec already says that in section 3.8.4 that a SETTINGS frame MUST be the first frame sent by either party in a new session.

So that part is fine. If we wish to say that a server has no session header, that would be fine. 

As for " As proposed by Gabriel, SETTINGS (or equivalent) would/could be carried in the headers in the UPGRADE request."

For the record, I did not say that in the Upgrade scenario the client session header is sent in HTTP/1.1 along with the Upgrade request. My understanding is that the Upgrade request goes without the client session header. As we have discussed in Orlando, we could add some HTTP/1.1 headers to address the known state by conveying *some* of the settings (only those absolutely necessary to achieve known initial state). But that's a separate proposal/discussion from this thread.

At any rate, the server sends back the 101, and begins its HTTP/2.0 traffic by  sending its SETTINGS frame and its response frames, and the client upon receiving the 101, and only then, begins sending HTTP/2.0 traffic starting with its client session header (which includes the magic sequence and the client SETTINGS frame).