Re: Design Issue: PUSH_PROMISE and Stream Priority

James M Snell <jasnell@gmail.com> Fri, 26 April 2013 16:29 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 5B5D921F9A09 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 26 Apr 2013 09:29:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.418
X-Spam-Level:
X-Spam-Status: No, score=-10.418 tagged_above=-999 required=5 tests=[AWL=0.181, BAYES_00=-2.599, 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 jNiXe2Nem1Pt for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 26 Apr 2013 09:29:19 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 11B2B21F9A07 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 26 Apr 2013 09:29:19 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UVlVU-0001Zf-JS for ietf-http-wg-dist@listhub.w3.org; Fri, 26 Apr 2013 16:28:20 +0000
Resent-Date: Fri, 26 Apr 2013 16:28:20 +0000
Resent-Message-Id: <E1UVlVU-0001Zf-JS@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <jasnell@gmail.com>) id 1UVlVP-0001Yz-Lp for ietf-http-wg@listhub.w3.org; Fri, 26 Apr 2013 16:28:15 +0000
Received: from mail-oa0-f44.google.com ([209.85.219.44]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <jasnell@gmail.com>) id 1UVlVO-0007Xy-Pn for ietf-http-wg@w3.org; Fri, 26 Apr 2013 16:28:15 +0000
Received: by mail-oa0-f44.google.com with SMTP id h1so4200653oag.31 for <ietf-http-wg@w3.org>; Fri, 26 Apr 2013 09:27:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=tImxpN5GimJnYlkBaSb9/wBfV4kuDuarPPAQdIQWaOc=; b=iuQz+vhUUy8TSTXHRiQJ+AOfrhN78XIWgBhWKuybp5z2lqfEGIjCvXDFtCERI1y7Ch CIKIRDRMMCfSDc24A7xdRHC8xZMenujiOcSeCulU8lS4d9JMWsY013YJbVAdee50cMn2 zLkrj4xmPaB4ScS+un36OP0Wz2IGBcb6CndyuSld87/O3542A1xkPFDnP4VDZZZtFABT 3KjWYRihXUH7MPdMHcyjAp5chNkvJzXpDcICwzS8eIZAtM1/I4rNdGT8Gs9l1LWFCXNB pME9Tq42owTVWa6bfhfX3cw1CIit0rw/Y8mwDs0QrNwt4SqxqoOaomI6pFDjufNatEYD luRA==
X-Received: by 10.60.141.226 with SMTP id rr2mr6353231oeb.35.1366993668873; Fri, 26 Apr 2013 09:27:48 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.60.3.137 with HTTP; Fri, 26 Apr 2013 09:27:27 -0700 (PDT)
In-Reply-To: <6C71876BDCCD01488E70A2399529D5E516416AC5@ADELE.crf.canon.fr>
References: <CABP7Rbf_hZ036vUs4LNTrGQ91kft2_97aV-9Gi2KVJnUJphbNA@mail.gmail.com> <CABkgnnUBEvDtNQM8G5vyfyqRz4tQ8su9+14gMTdaXhzY2cq+Kg@mail.gmail.com> <CABP7RbccA=Zo2NVzJJ-8-G+y2cNt_j8rLr5YVfB_7CVOXLE_JQ@mail.gmail.com> <CABkgnnV64vRPcrdYGFcJQGZW_Wud5fKT76_z5BJc0NndsAEGYg@mail.gmail.com> <6C71876BDCCD01488E70A2399529D5E516416AC5@ADELE.crf.canon.fr>
From: James M Snell <jasnell@gmail.com>
Date: Fri, 26 Apr 2013 09:27:27 -0700
Message-ID: <CABP7RbcCesHYf8Q-9j22yg9=GGJWUooKKwBbJhBiyALzx3jWnw@mail.gmail.com>
To: RUELLAN Herve <Herve.Ruellan@crf.canon.fr>
Cc: Martin Thomson <martin.thomson@gmail.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=209.85.219.44; envelope-from=jasnell@gmail.com; helo=mail-oa0-f44.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.699, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1UVlVO-0007Xy-Pn b4c0bb198bf537d0a1c0258012417b20
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Design Issue: PUSH_PROMISE and Stream Priority
Archived-At: <http://www.w3.org/mid/CABP7RbcCesHYf8Q-9j22yg9=GGJWUooKKwBbJhBiyALzx3jWnw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/17607
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>

Ok, there are a couple of issues that have been discussed in this
thread.. let me see if I can summarize the priority issue: The spec
currently states that all Streams can have a priority, but provides no
way for the Server to specify the priority of PUSH_PROMISE streams.
For this there are several possible solutions:

    A. We can simply say PUSH_PROMISE streams have no priority.
    B. We can say that PUSH_PROMISE streams inherit the priority of
their parent, client-initiated stream
    C. We can allow the server to use HEADERS+PRIORITY or a new
Reprioritization Frame to establish the priority of a pushed stream.

For Options B and C, there is an open question about whether and how
an http client would even make use of stream priority.

My recommendation at this point is to go with option A. If, at some
point down the road, someone wants to start experimenting with
prioritized push streams, then more power to them. For now, I just
don't see the justification for it.

- James


On Fri, Apr 26, 2013 at 3:43 AM, RUELLAN Herve
<Herve.Ruellan@crf.canon.fr> wrote:
>
>
>> -----Original Message-----
>> From: Martin Thomson [mailto:martin.thomson@gmail.com]
>> Sent: vendredi 26 avril 2013 02:17
>> To: James M Snell
>> Cc: ietf-http-wg@w3.org
>> Subject: Re: Design Issue: PUSH_PROMISE and Stream Priority
>>
> [snip]
>>
>> > Another question: do pushed streams inherit the same priority as their
>> > associated "parent" streams? That is, client initiates a stream #1 to
>> > the server with priority 5, server responds on that stream with two
>> > PUSH_PROMISES for server-initiated streams #2 and #4... do streams #2
>> > and #4 inherit the same priority as stream #1. (Please say no, Please
>> > say no)
>>
>> I'm going to say yes and then make your day even worse by pointing out that
>> RST_STREAM(CANCEL) on stream #1 is expected to terminate all related
>> push streams, even if stream #1 is long gone.  (I'm assuming that one didn't
>> sink in when you read it.)  At least with priority you can copy that state over
>> when you copy over request headers (unless you want reprioritization of the
>> "parent" to also reprioritize pushes, which seems mega-crazy to me).  The
>> push cancellation thing is messy.
>
> I'm seeing the problem in a slightly different way: in the current usage of SPDY, the client initiates the stream #1 by sending the HEADERS+PRIORITY frame with the FINAL flag set to half close it. Therefore, the client is unable to send a RST_STREAM on stream #1 to terminate the related push streams.
> To take into account server push, the client will want to keep the stream #1 fully open until at least it is half closed by the server. This means that in HTTP/2.0, stream #1 will stay alive much longer.
>
> Hervé.