Re: HTTP/2 Upgrade with content?

Daniel Stenberg <daniel@haxx.se> Fri, 13 March 2015 22:31 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ietf.org@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 (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A98811A8723 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 13 Mar 2015 15:31:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.912
X-Spam-Level:
X-Spam-Status: No, score=-6.912 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] 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 1mdMbJdhXBd1 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 13 Mar 2015 15:31:31 -0700 (PDT)
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 6CF941A1E0B for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 13 Mar 2015 15:31:31 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1YWY4E-0003sp-B1 for ietf-http-wg-dist@listhub.w3.org; Fri, 13 Mar 2015 22:28:30 +0000
Resent-Date: Fri, 13 Mar 2015 22:28:30 +0000
Resent-Message-Id: <E1YWY4E-0003sp-B1@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.80) (envelope-from <daniel@haxx.se>) id 1YWY48-0003s8-0n for ietf-http-wg@listhub.w3.org; Fri, 13 Mar 2015 22:28:24 +0000
Received: from giant.haxx.se ([80.67.6.50]) by lisa.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <daniel@haxx.se>) id 1YWY46-0008VB-NL for ietf-http-wg@w3.org; Fri, 13 Mar 2015 22:28:23 +0000
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t2DMRnU4030320 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 Mar 2015 23:27:49 +0100
Received: from localhost (dast@localhost) by giant.haxx.se (8.14.4/8.14.4/Submit) with ESMTP id t2DMRnBx030316; Fri, 13 Mar 2015 23:27:49 +0100
X-Authentication-Warning: giant.haxx.se: dast owned process doing -bs
Date: Fri, 13 Mar 2015 23:27:49 +0100
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: Greg Wilkins <gregw@intalio.com>
cc: "Jason T. Greene" <jason.greene@redhat.com>, Stefan Eissing <stefan.eissing@greenbytes.de>, Mike Bishop <Michael.Bishop@microsoft.com>, HTTP Working Group <ietf-http-wg@w3.org>
In-Reply-To: <CAH_y2NGP8F7eZ_PZ1stEoOBzmR5TZV0Xrv2knrqdpJoxjY3orw@mail.gmail.com>
Message-ID: <alpine.DEB.2.11.1503132321290.27951@tvnag.unkk.fr>
References: <CAH_y2NF3iwND1ttQDY98KC_u=OZj5aqEABmXHKObMgqPH1npLg@mail.gmail.com> <BL2PR03MB1323474B977B051738AD09187060@BL2PR03MB132.namprd03.prod.outlook.com> <CAH_y2NFV=Z7hqbtWTdiePRwUnhhRjiP8R_Ua7kmpZEkwXtxgEA@mail.gmail.com> <B5C01B7A-9215-4268-B189-E6281F425BF7@greenbytes.de> <alpine.DEB.2.11.1503130833190.13706@tvnag.unkk.fr> <6E036F2D-AED0-4323-ACCB-D8036168E6C1@redhat.com> <CAH_y2NFjb0mx8Rs+qg6uJ=zgUzHW3ksiOSN4_GXubKG-P2QDaw@mail.gmail.com> <alpine.DEB.2.11.1503131457030.27951@tvnag.unkk.fr> <CAH_y2NGP8F7eZ_PZ1stEoOBzmR5TZV0Xrv2knrqdpJoxjY3orw@mail.gmail.com>
User-Agent: Alpine 2.11 (DEB 23 2013-08-11)
X-fromdanielhimself: yes
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset="US-ASCII"; format="flowed"
Received-SPF: pass client-ip=80.67.6.50; envelope-from=daniel@haxx.se; helo=giant.haxx.se
X-W3C-Hub-Spam-Status: No, score=-4.2
X-W3C-Hub-Spam-Report: AWL=-1.887, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001
X-W3C-Scan-Sig: lisa.w3.org 1YWY46-0008VB-NL 48c44e70308fd409ffd5d3411f033238
X-Original-To: ietf-http-wg@w3.org
Subject: Re: HTTP/2 Upgrade with content?
Archived-At: <http://www.w3.org/mid/alpine.DEB.2.11.1503132321290.27951@tvnag.unkk.fr>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/28970
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 Sat, 14 Mar 2015, Greg Wilkins wrote:

> So if curl is asked to use http2 on multiple requests and the upgrade is 
> rejected on the first one, will it still proceed to the next request and if 
> so will it attempt the upgrade again?  Or is it going to fail the first 
> request because the desired protocol was not used?

It'll try again on the next request.

> If implemented like that, the multiple requests would work and the upgrade
> would be done as soon as the server saw an acceptable request on which it
> was prepared to do the update.

Yes it should work fine.

> Users who wanted to insist that a specific POST was HTTP/2 could insert a 
> small request prior to ensure an acceptable upgrade takes place before the 
> upload.

Right, could be done already today yes.

If lots of servers end up ignoring POST/PUT with 1.1+Upgrade then I guess we 
might consider implementing some sort of work-around for it like the mentioned 
OPTION * trick or whatever. Even though we potentially lose an RTT with it.

-- 

  / daniel.haxx.se