Re: Design: Adding ASSOCIATED_ONLY

Patrick McManus <mcmanus@ducksong.com> Wed, 19 June 2013 18:20 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 EC85621F9B16 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 19 Jun 2013 11:20:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.976
X-Spam-Level:
X-Spam-Status: No, score=-9.976 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, 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 Ad5m+-B9x2VR for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 19 Jun 2013 11:19:58 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 7255D21F9EA2 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 19 Jun 2013 11:19:58 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UpMyn-0004vK-Fg for ietf-http-wg-dist@listhub.w3.org; Wed, 19 Jun 2013 18:19:37 +0000
Resent-Date: Wed, 19 Jun 2013 18:19:37 +0000
Resent-Message-Id: <E1UpMyn-0004vK-Fg@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <patrick.ducksong@gmail.com>) id 1UpMya-0004na-78 for ietf-http-wg@listhub.w3.org; Wed, 19 Jun 2013 18:19:24 +0000
Received: from mail-oa0-f51.google.com ([209.85.219.51]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <patrick.ducksong@gmail.com>) id 1UpMyZ-0003n0-FF for ietf-http-wg@w3.org; Wed, 19 Jun 2013 18:19:24 +0000
Received: by mail-oa0-f51.google.com with SMTP id i4so6966629oah.10 for <ietf-http-wg@w3.org>; Wed, 19 Jun 2013 11:18:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=+7sY8XI3FrIauhIuWUByAIyFTfcTFEN8IP8k+orFOxA=; b=o9yZP/ax3INePblHJXQBc14seHEcIjbxYvOvkvHyZSwb7Ps7xtFcMfPYBY6j9NAqev uEf4vkTFgfXe//NFGpnExVPjlH4LaRxG0j0sAeP4oCKmekK1Lf8BEuObDOlRS2AXDqBU h3jbcVvLXuUqVV+KKLlxQFZogt6D5CxKk0DPs3LFAnytvM9OJuML1WpzZ7730hmzP7uS PUPbQrJzkrn2yQcGtSHUkDwow4qYjN6SSuk9M95p3LCLqeYYZ4P4Tv74dWsRqM5xUUBq pZksR4M377oK0zG7piqevvWCTvw3RuMzM1xRcZS/jiLdRv69I27qesevhRMIHpOCQAiz cGSA==
MIME-Version: 1.0
X-Received: by 10.60.80.39 with SMTP id o7mr2937529oex.60.1371665937246; Wed, 19 Jun 2013 11:18:57 -0700 (PDT)
Sender: patrick.ducksong@gmail.com
Received: by 10.76.6.195 with HTTP; Wed, 19 Jun 2013 11:18:57 -0700 (PDT)
In-Reply-To: <CABkgnnUKnborWAtuxwEvWx7wR=JYdOTvWHbpPd6NJ5kXK0Sw9A@mail.gmail.com>
References: <CABP7Rbe29dHp3LZuWEMKJdVEkuHW2jOUK0sSyBuh6PFnq=9Z1A@mail.gmail.com> <CABkgnnUKnborWAtuxwEvWx7wR=JYdOTvWHbpPd6NJ5kXK0Sw9A@mail.gmail.com>
Date: Wed, 19 Jun 2013 14:18:57 -0400
X-Google-Sender-Auth: pbi_RzXw3_h24zalM1ijGO4IgX8
Message-ID: <CAOdDvNocpS7ZMehrBdgvHOqD3UGosJk6JiLqgxUfqeOMUjc4sw@mail.gmail.com>
From: Patrick McManus <mcmanus@ducksong.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: James M Snell <jasnell@gmail.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="089e01184b18f0b54c04df85dc6b"
Received-SPF: pass client-ip=209.85.219.51; envelope-from=patrick.ducksong@gmail.com; helo=mail-oa0-f51.google.com
X-W3C-Hub-Spam-Status: No, score=-3.2
X-W3C-Hub-Spam-Report: AWL=-2.538, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1UpMyZ-0003n0-FF c273a05d827ded42ec246f6d11079f83
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Design: Adding ASSOCIATED_ONLY
Archived-At: <http://www.w3.org/mid/CAOdDvNocpS7ZMehrBdgvHOqD3UGosJk6JiLqgxUfqeOMUjc4sw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/18296
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>

I think its worth noting that in spdy RST_STREAM was, as Martin says,
specified to terminate all associated streams in addition to the parent
stream. But afaict (willchan, correct me if I'm wrong) *nobody implementing
it did that*. which is a pretty strong signal that the mechanism should
just be removed from the spec rather than extended into priority semantics
too.



On Wed, Jun 19, 2013 at 2:07 PM, Martin Thomson <martin.thomson@gmail.com>wrote:

> On 19 June 2013 10:56, James M Snell <jasnell@gmail.com> wrote:
> > https://github.com/http2/http2-spec/pull/144
> >
> > This was a technical change brought up and discussed as part of the
> > "layering taskforce" breakout but was never discussed in the larger
> > interim discussions.
> >
> > Essentially, this PR would add an "ASSOCIATED_ONLY" flag to PRIORITY
> > and RST_STREAM frames that would allow terminating and reprioritizing
> > promised streams as a group.
> >
> > Sending PRIORITY(ASSOCIATED_ONLY) would ONLY set the priority for
> > associated streams, not the referenced stream.
> >
> > Sending RST_STREAM(ASSOCIATED_ONLY) would terminate ONLY the
> > associated streams, not the referenced stream.
> >
> > Without this, we would have to send PRIORITY and RST_STREAM for each
> > individual associated stream, which is obviously quite inefficient.
>
> What James omits is:
>
> RST_STREAM is currently specified to terminate all associated streams
> in addition to the parent stream.  This would remove this coupling,
> which is considered by some to be problematic.
>
> It's not possible to reprioritise associated streams as a group.  We
> did agree that associated streams would inherit a priority that is
> lower (by one) than the parent stream.  As it stands, changing all of
> them requires first discovering the stream ID that will be used, then
> sending individual PRIORITY frames for each.
>
> There's not a lot of experience with this area of the specification.
>
>