W3C home > Mailing lists > Public > ietf-http-wg@w3.org > July to September 2014

Re: 1xx (informational) responses affect on stream management

From: Greg Wilkins <gregw@intalio.com>
Date: Wed, 6 Aug 2014 08:37:55 +1000
Message-ID: <CAH_y2NF8gbTXgy7iC_13KY5QccR8me7fxT93+a=EZkkQWRVUhg@mail.gmail.com>
To: Matthew Cox <macox@microsoft.com>
Cc: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
On 6 August 2014 04:05, Matthew Cox <macox@microsoft.com> wrote:

> Currently I’m able to do all of my stream state management/transitions
> without having to do any interpretation of the payload.


That is a good thing to strive for !  (and it is one of the things I
dislike most about the draft that we have to look at frame type before we
can look for END_STREAM flag).

But, if we are ever to carry non-HTTP protocols over streams (eg
websocket), then I think it is really important to not enforcing HTTP
semantics in the streaming layer. So I don't think the HTTP semantics
described in 8.1 are something that you need to tracked in the framing
layer / stream management.

It should not be the framing layers job to police HTTP semantic
consistency.  For example checking that any content-length sent is the same
as the amount data actually sent is not something that should be done in
the framing layer, nor if the status value is actually an integer nor any
of the many other ways you can create an invalid HTTP message.

So I think your streaming layer should pretty much allow any frame type
sequence through, and only look at frame type just enough to look for
END_STREAM.....   maybe it must also handle CONTINUATIONs and END_HEADERS
because of their particular requirements  (more conflation of HTTP
semantics to the framing layer).    But let it be relaxed about non-http
frame sequences in a stream, as hopefully we eventually will see non-http
travelling over streams.

cheers







-- 
Greg Wilkins <gregw@intalio.com>
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 Tuesday, 5 August 2014 22:38:24 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 30 March 2016 09:57:09 UTC