RE: HTTP Layer rework and PUSH_PROMISE contents

Mike Bishop <Michael.Bishop@microsoft.com> Sat, 29 June 2013 04:06 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 AB56321F9B79 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 28 Jun 2013 21:06:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.598
X-Spam-Level:
X-Spam-Status: No, score=-10.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, 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 y9vRIuwMD7dz for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 28 Jun 2013 21:06:44 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 63E1D21F9B06 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 28 Jun 2013 21:06:43 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UsmPL-0005wa-4q for ietf-http-wg-dist@listhub.w3.org; Sat, 29 Jun 2013 04:05:07 +0000
Resent-Date: Sat, 29 Jun 2013 04:05:07 +0000
Resent-Message-Id: <E1UsmPL-0005wa-4q@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <Michael.Bishop@microsoft.com>) id 1UsmOv-0004P4-0p for ietf-http-wg@listhub.w3.org; Sat, 29 Jun 2013 04:04:41 +0000
Received: from mail-by2lp0244.outbound.protection.outlook.com ([207.46.163.244] helo=na01-by2-obe.outbound.protection.outlook.com) by maggie.w3.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from <Michael.Bishop@microsoft.com>) id 1UsmOt-0006iQ-U1 for ietf-http-wg@w3.org; Sat, 29 Jun 2013 04:04:40 +0000
Received: from BL2FFO11FD022.protection.gbl (10.173.161.203) by BL2FFO11HUB027.protection.gbl (10.173.161.51) with Microsoft SMTP Server (TLS) id 15.0.717.3; Sat, 29 Jun 2013 04:04:12 +0000
Received: from TK5EX14HUBC101.redmond.corp.microsoft.com (131.107.125.37) by BL2FFO11FD022.mail.protection.outlook.com (10.173.161.101) with Microsoft SMTP Server (TLS) id 15.0.707.0 via Frontend Transport; Sat, 29 Jun 2013 04:04:12 +0000
Received: from ch1outboundpool.messaging.microsoft.com (157.54.51.114) by mail.microsoft.com (157.54.7.153) with Microsoft SMTP Server (TLS) id 14.3.136.1; Sat, 29 Jun 2013 04:04:11 +0000
Received: from mail67-ch1-R.bigfish.com (10.43.68.250) by CH1EHSOBE008.bigfish.com (10.43.70.58) with Microsoft SMTP Server id 14.1.225.22; Sat, 29 Jun 2013 04:04:10 +0000
Received: from mail67-ch1 (localhost [127.0.0.1]) by mail67-ch1-R.bigfish.com (Postfix) with ESMTP id 16DB342032F for <ietf-http-wg@w3.org.FOPE.CONNECTOR.OVERRIDE>; Sat, 29 Jun 2013 04:04:10 +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: -1
X-BigFish: PS-1(zz98dI9371Ic89bh1432Izz1f42h1ee6h1de0h1fdah2073h1202h1e76h1d1ah1d2ah1fc6hzz18c673h8275bh8275dhz31h2a8h668h839hd24hf0ah1288h12a5h12bdh137ah1441h1504h1537h153bh162dh1631h1758h18e1h1946h19b5h19ceh1ad9h1b0ah1bceh1d07h1d0ch1d2eh1d3fh1de9h1dfeh1dffh1e1dh9a9j1155h)
Received-SPF: softfail (mail67-ch1: transitioning domain of microsoft.com does not designate 157.56.240.21 as permitted sender) client-ip=157.56.240.21; envelope-from=Michael.Bishop@microsoft.com; helo=BL2PRD0310HT003.namprd03.prod.outlook.com ; .outlook.com ;
X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(377454003)(51704005)(24454002)(189002)(199002)(56776001)(81342001)(74876001)(65816001)(69226001)(4396001)(50986001)(80022001)(46102001)(59766001)(54316002)(51856001)(49866001)(66066001)(83072001)(47976001)(77982001)(47736001)(76786001)(31966008)(54356001)(76796001)(53806001)(16236675002)(63696002)(76482001)(47446002)(74502001)(81542001)(74316001)(74662001)(77096001)(33646001)(76576001)(79102001)(74366001)(16406001)(74706001)(56816003)(24736002); DIR:OUT; SFP:; SCL:1; SRVR:BY2PR03MB026; H:BY2PR03MB025.namprd03.prod.outlook.com; RD:InfoNoRecords; MX:1; A:1; LANG:en;
Received: from mail67-ch1 (localhost.localdomain [127.0.0.1]) by mail67-ch1 (MessageSwitch) id 1372478648252003_15168; Sat, 29 Jun 2013 04:04:08 +0000 (UTC)
Received: from CH1EHSMHS040.bigfish.com (snatpool3.int.messaging.microsoft.com [10.43.68.226]) by mail67-ch1.bigfish.com (Postfix) with ESMTP id 3A00D4406D7 for <ietf-http-wg@w3.org>; Sat, 29 Jun 2013 04:04:08 +0000 (UTC)
Received: from BL2PRD0310HT003.namprd03.prod.outlook.com (157.56.240.21) by CH1EHSMHS040.bigfish.com (10.43.69.249) with Microsoft SMTP Server (TLS) id 14.1.225.23; Sat, 29 Jun 2013 04:04:08 +0000
Received: from BY2PR03MB026.namprd03.prod.outlook.com (10.255.240.40) by BL2PRD0310HT003.namprd03.prod.outlook.com (10.255.97.38) with Microsoft SMTP Server (TLS) id 14.16.324.0; Sat, 29 Jun 2013 04:04:04 +0000
Received: from BY2PR03MB025.namprd03.prod.outlook.com (10.255.240.39) by BY2PR03MB026.namprd03.prod.outlook.com (10.255.240.40) with Microsoft SMTP Server (TLS) id 15.0.702.21; Sat, 29 Jun 2013 04:04:01 +0000
Received: from BY2PR03MB025.namprd03.prod.outlook.com ([169.254.8.74]) by BY2PR03MB025.namprd03.prod.outlook.com ([169.254.8.74]) with mapi id 15.00.0702.005; Sat, 29 Jun 2013 04:04:00 +0000
From: Mike Bishop <Michael.Bishop@microsoft.com>
To: HTTP Working Group <ietf-http-wg@w3.org>
Thread-Topic: HTTP Layer rework and PUSH_PROMISE contents
Thread-Index: Ac50XHHn5C5V/Yr6RlmQKoNJCHNNNQAAykCAAAFxQIAABhPZbA==
Date: Sat, 29 Jun 2013 04:04:00 +0000
Message-ID: <7f08ae58cdb4487993d8b0bc290cf264@BY2PR03MB025.namprd03.prod.outlook.com>
References: <15a394809da64b188945aa51ac0265b4@BY2PR03MB025.namprd03.prod.outlook.com> <CABP7RbceLmh4dawBQjqVyF4BeF92sfSSVMXJMjYY+txPh0zGTg@mail.gmail.com>, <alpine.LRH.2.01.1306281749470.22944@egate.xpasc.com>
In-Reply-To: <alpine.LRH.2.01.1306281749470.22944@egate.xpasc.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [24.16.13.163]
x-forefront-prvs: 0892FA9A88
Content-Type: multipart/alternative; boundary="_000_7f08ae58cdb4487993d8b0bc290cf264BY2PR03MB025namprd03pro_"
MIME-Version: 1.0
X-OrganizationHeadersPreserved: BY2PR03MB026.namprd03.prod.outlook.com
X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn%
X-FOPE-CONNECTOR: Id%59$Dn%W3.ORG$RO%2$TLS%6$FQDN%corpf5vips-237160.customer.frontbridge.com$TlsDn%
X-CrossPremisesHeadersPromoted: TK5EX14HUBC101.redmond.corp.microsoft.com
X-CrossPremisesHeadersFiltered: TK5EX14HUBC101.redmond.corp.microsoft.com
X-Forefront-Antispam-Report: CIP:131.107.125.37; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(199002)(189002)(51704005)(24454002)(377454003)(16676001)(16236675002)(47736001)(74316001)(4396001)(6806003)(65816001)(50986001)(80022001)(49866001)(83072001)(33646001)(63696002)(20776003)(47976001)(81542001)(54356001)(69226001)(71186001)(81342001)(76576001)(79102001)(66066001)(74706001)(74876001)(59766001)(56776001)(77982001)(51856001)(56816003)(53806001)(47446002)(46102001)(76786001)(76482001)(44976004)(76796001)(74502001)(54316002)(74366001)(77096001)(74662001)(31966008)(24736002); DIR:OUT; SFP:; SCL:1; SRVR:BL2FFO11HUB027; H:TK5EX14HUBC101.redmond.corp.microsoft.com; CLIP:131.107.125.37; RD:InfoDomainNonexistent; A:1; MX:1; LANG:en;
X-OriginatorOrg: microsoft.onmicrosoft.com
X-O365ENT-EOP-Header: Message processed by - O365_ENT: Allow from ranges (Engineering ONLY)
X-Forefront-PRVS: 0892FA9A88
Received-SPF: pass client-ip=207.46.163.244; envelope-from=Michael.Bishop@microsoft.com; helo=na01-by2-obe.outbound.protection.outlook.com
X-W3C-Hub-Spam-Status: No, score=-0.7
X-W3C-Hub-Spam-Report: HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1UsmOt-0006iQ-U1 2490af571b44c506bb98d9ef3d98cf11
X-Original-To: ietf-http-wg@w3.org
Subject: RE: HTTP Layer rework and PUSH_PROMISE contents
Archived-At: <http://www.w3.org/mid/7f08ae58cdb4487993d8b0bc290cf264@BY2PR03MB025.namprd03.prod.outlook.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/18404
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>

Isn't that the definition of a SHOULD?  Not necessary for protocol interoperability, but there are strong reasons why it ought to be done that way.  I agree that there are unpleasant results if the sequence isn't there -- I just question whether that makes it a protocol MUST rather than a best practice.

To Mike's point, we're not really middleware, since we're the only protocol implementation in the path.  As such, we're the ones responsible for being compliant with the protocol MUSTs.

Sent from my Windows Phone
________________________________
From: David Morris<mailto:dwm@xpasc.com>
Sent: ‎6/‎28/‎2013 6:13 PM
To: HTTP Working Group<mailto:ietf-http-wg@w3.org>
Subject: Re: HTTP Layer rework and PUSH_PROMISE contents


I think the SHOULD is pretty strong ... not referencing the outcomes
from the SF Interim, but I think I recall an acknowledgement in the
meetihg that the only way to preclude a race condition with the
client requesting what the server was going to promise was to have the
PUSH_PROMISE sent before any primary response references to the resource.

If this conditions isn't met, I foresee a lot of wasted bandwidth between
client initiated requests and PUSH_PROMISEs for the same resource. Also,
wasted server effort to serve the resource twice.

This issue could be quite important when the last mile to the client is
relatively slow OR the user pays for bandwidth.

I'm not arguing for MUST, but I think a mechanism will be required to
manage the downside if it isn't MUST. A setting or response flag that
gives the client a hint that PUSH_PROMISES are anticipated so the client
should avoid agressive parse/pre-fetch.


On Fri, 28 Jun 2013, James M Snell wrote:

> That's why review is good :) the requirement upgrade was unintentional. If
> possible, can you make a note on the pull request?
> On Jun 28, 2013 5:11 PM, "Mike Bishop" <Michael.Bishop@microsoft.com> wrote:
>
> >  In draft-ietf-httpbis-http2.xml:****
> >
> > >  ****
> >
> > > +        <t>****
> >
> > > +          The server can choose to send one or more push promises****
> >
> > > +          associated with the response. These notify the client that ****
> >
> > > +          the server intends to deliver additional resources to the client****
> >
> > > +          as specified in <xref target="PushResources" />. If the server****
> >
> > > +          sends PUSH_PROMISE frames, those MUST be sent prior to sending ****
> >
> > > +          any header blocks or DATA frames that reference the promised resources.****
> >
> > > +          For instance, if the server receives a request for a document****
> >
> > > +          containing embedded links to multiple image files, and the ****
> >
> > > +          server chooses to push those additional images to the client, ****
> >
> > > +          all of the push promises MUST be sent prior to sending the DATA frames ****
> >
> > > +          that contain the image links. Likewise, if the server pushes ****
> >
> > > +          resources referenced by the header block (i.e. using Link headers), ****
> >
> > > +          the server MUST send the push promises before sending the header****
> >
> > > +          block.****
> >
> > You're upgrading a SHOULD in the current spec to a MUST. Has this been
> > discussed on-list?****
> >
> > Speaking as the http.sys owner for Windows, this concerns me. We don't
> > know the content of the entity body fragments or response headers an
> > application hands us, only the order. The only way we can definitively
> > comply with this MUST is to make all PUSH_PROMISE frames precede all DATA
> > or HEADERS frames. As a SHOULD, we're free to leave proper behavior to the
> > app using our APIs, while maintaining non-optional protocol compliance at
> > our layer. ****
> >
>