W3C home > Mailing lists > Public > ietf-http-wg@w3.org > April to June 2013

Re: Implementation Notes on Server Push

From: (wrong string) 陈智昌 <willchan@chromium.org>
Date: Tue, 14 May 2013 16:34:01 -0300
Message-ID: <CAA4WUYgU5mkHv-WZ0XoWg2NDj4oz2TVTwPOJrE18P_cHYDCmGA@mail.gmail.com>
To: Patrick McManus <pmcmanus@mozilla.com>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Thanks for the feedback, this is great to hear.

On Tue, May 14, 2013 at 4:14 PM, Patrick McManus <pmcmanus@mozilla.com>wrote:

> I'm wrapping up a Firefox implementation of spdy/3 server push and wanted
> to provide some ietf level feedback because that mechanism is largely
> intact in the current http2 work in progress draft.
>    - 304's seem to be a common cause of wasted pushed streams. I would
>    see servers respond with a 304 for index.html and still push 200 responses
>    for a.css and b.js when in a non-push world that would have been either 1
>    or 3 304's. Maybe we should have a rule that you can only push to an
>    assoc-stream of 2xx ?
I'm hesitant to mandate this behavior. I think it's best to say that
servers should figure this out. Server push is an advanced feature and I
think it'll take us a little while to develop best practices around its
use. This sounds great for a best practice recommendation.

>    - There is language in the spec that if the client resets a stream
>    that it implicitly resets any associated streams too. That was complicated
>    to implement and pretty much broke my stream state model internally - while
>    researching it it appears that mod_spdy and chrome don't implement it at
>    all. The spec has an editorial note about removing that feature and I favor
>    that removal.
> The interesting thing to note is our two major server implementations of
push (mod_spdy & Jetty) both did not implement the implicit reset. But
which side bears the responsibility for explicitly resetting the stream?
Smart servers will reset the push streams still in order to save sending
unnecessary data, which is kinda what the implicit reset would suggest
they'd do, except without explicitly sending the RST_STREAM. None of our
existing implementations were that smart though (I doubt any initial server
push implementation would be very well tuned, so I'm not dinging the
implementers. I mean, our Chromium implementation admittedly sucks and we
find rough edges all the time). If the server doesn't explicitly do a
RST_STREAM, then I think smart clients will probably send RST_STREAMs when
the parent stream is canceled.

>    - I found flow control for pushed streams immensely helpful. It lets
>    the client bound how much data can be pushed before there is a local GET
>    matched up with that. Relatedly, I changed my default SETTINGS window size
>    from a ~infinite value to be a smaller push-apropos value and then
>    pipelined a window update with each odd SYN_STREAM to make pulled streams
>    ~infinite again while preserving the smaller limit for push and this worked
>    fine with all existing servers to my pleasant surprise. That seems to mean
>    at least the spdy/3 windowing mechanism is simple enough for people to get
>    right.
>    - As with other parts of the spec, I was faced in some implementations
>    with some very large data frames (90+KB) from servers when testing. Such
>    frames are impervious to CANCEL or any mechanism we might use to change
>    priorities driven by the client :(..  HTTP2 is doing the right thing by
>    creating a smallish max frame size.
> I assume you're testing against mod_spdy or Jetty. If you see this, we
should fix those implementations. I think the developers will be very
welcoming of feedback.

> Obviously this is implementation experience with testing and isn't real
> operational experience yet.. that will come.
> -P
Received on Tuesday, 14 May 2013 19:50:07 UTC

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