Re: Design: Adding ASSOCIATED_ONLY

Martin Thomson <martin.thomson@gmail.com> Wed, 19 June 2013 18:08 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 C5A4A21F9E6C for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 19 Jun 2013 11:08:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.947
X-Spam-Level:
X-Spam-Status: No, score=-6.947 tagged_above=-999 required=5 tests=[AWL=3.652, 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 aDSgfbfMZwUj for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 19 Jun 2013 11:08:32 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 795DE21F9E31 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 19 Jun 2013 11:08:32 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UpMno-0006hm-6J for ietf-http-wg-dist@listhub.w3.org; Wed, 19 Jun 2013 18:08:16 +0000
Resent-Date: Wed, 19 Jun 2013 18:08:16 +0000
Resent-Message-Id: <E1UpMno-0006hm-6J@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1UpMnb-0006fv-5Q for ietf-http-wg@listhub.w3.org; Wed, 19 Jun 2013 18:08:03 +0000
Received: from mail-wi0-f179.google.com ([209.85.212.179]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1UpMna-0003EJ-5Y for ietf-http-wg@w3.org; Wed, 19 Jun 2013 18:08:03 +0000
Received: by mail-wi0-f179.google.com with SMTP id hj3so934853wib.0 for <ietf-http-wg@w3.org>; Wed, 19 Jun 2013 11:07:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=cRcI7uNoRnClzz1cPjqVM4Bkv7MAmENhH/8M6lxMNJw=; b=qjhgGfA4RUJBZBxIWsxwgFOW3XacugkvwQbU5wD/RagSP9OfgyvG/fg6543QQEecCO f4qRgAV5JzF5CnRXXK4ReVYlOccKUpKoySYcTNUemYV31mEgmKnBpOKO8r5iR35lsLLl lB9BIo9oMPdejdHBE55o5Z7T/cvw9ifpur2SPIL0UYJfH1euJBIg7VPJamS9i0JFyqQ3 lb1MYfcWyEqOz+0NxALVRIldknonLVVKXYTqYflQqL5983z0GI5c12+J+zixZDjuGOU8 lph/+/5Af/zD523gtoT4BkPOi02Ug+LW7mUa8vEvoNWHP5fhuVZcmrTawj35zVi6AkvI o5mQ==
MIME-Version: 1.0
X-Received: by 10.180.78.35 with SMTP id y3mr11813830wiw.65.1371665255767; Wed, 19 Jun 2013 11:07:35 -0700 (PDT)
Received: by 10.194.60.46 with HTTP; Wed, 19 Jun 2013 11:07:35 -0700 (PDT)
In-Reply-To: <CABP7Rbe29dHp3LZuWEMKJdVEkuHW2jOUK0sSyBuh6PFnq=9Z1A@mail.gmail.com>
References: <CABP7Rbe29dHp3LZuWEMKJdVEkuHW2jOUK0sSyBuh6PFnq=9Z1A@mail.gmail.com>
Date: Wed, 19 Jun 2013 11:07:35 -0700
Message-ID: <CABkgnnUKnborWAtuxwEvWx7wR=JYdOTvWHbpPd6NJ5kXK0Sw9A@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: James M Snell <jasnell@gmail.com>
Cc: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=209.85.212.179; envelope-from=martin.thomson@gmail.com; helo=mail-wi0-f179.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.698, 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: lisa.w3.org 1UpMna-0003EJ-5Y 6a3cb0a29ad7b27b2ca4a14f560bb0db
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Design: Adding ASSOCIATED_ONLY
Archived-At: <http://www.w3.org/mid/CABkgnnUKnborWAtuxwEvWx7wR=JYdOTvWHbpPd6NJ5kXK0Sw9A@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/18292
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>

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.