W3C home > Mailing lists > Public > ietf-http-wg@w3.org > January to March 2015

Re: HTTP/2 Upgrade with content?

From: Greg Wilkins <gregw@intalio.com>
Date: Sat, 14 Mar 2015 09:15:14 +1100
Message-ID: <CAH_y2NGOzsgs3SuVcxNdMc76BcdNLUBKuK93aS9j-iJBfevDwA@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: "Jason T. Greene" <jason.greene@redhat.com>, Daniel Stenberg <daniel@haxx.se>, Stefan Eissing <stefan.eissing@greenbytes.de>, Mike Bishop <Michael.Bishop@microsoft.com>, HTTP Working Group <ietf-http-wg@w3.org>
On 14 March 2015 at 05:25, Martin Thomson <martin.thomson@gmail.com> wrote:

> On 13 March 2015 at 06:19, Greg Wilkins <gregw@intalio.com> wrote:
> > Failing the direct PRI approach, it would be far better to try the
> upgrade
> > on an OPTION request before commencing on the big post/put.
> I'd always considered it this way:
> Read the headers, notice that it is HTTP/2, proceed as though it were
> HTTP/1.1.
> Then, when the response is written, perform a rewrite into HTTP/2.


there is no obligation for the request to be read before the response is
written and there are many apps that write the response as the request is

Consider an app that performs some kind of streaming translation of the
posted content into the response.  It will be reading chunks of the
HTTP/1.1 response and sending that as frames of HTTP/2 response.
Eventually the stream/connection "window" will be consumed, but a window
update frame will not be able to be sent because the HTTP/1.1 response is
not complete.

I don't see this as impossible, and while it's ugly that the
> specialized code has to exist (for numerous reasons), the specific
> code doesn't have to be ugly if factored well.

This is not a issue of uglyness.     It is a question of server consistency
when dealing with the DoS issues and possibility when dealing with the
deadlock issue.


Greg Wilkins <gregw@intalio.com>  @  Webtide - *an Intalio subsidiary*
http://eclipse.org/jetty HTTP, SPDY, Websocket server and client that scales
http://www.webtide.com  advice and support for jetty and cometd.
Received on Friday, 13 March 2015 22:15:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:43 UTC