Re: Design: Adding ASSOCIATED_ONLY

Mike Belshe <mike@belshe.com> Wed, 19 June 2013 18:14 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 C6AD921F9E8B for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 19 Jun 2013 11:14:30 -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=[AWL=-0.000, 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 tEOQwsynXWSc for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 19 Jun 2013 11:14:25 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 3B38621F9E6C for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 19 Jun 2013 11:14:25 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UpMtT-00005N-Gi for ietf-http-wg-dist@listhub.w3.org; Wed, 19 Jun 2013 18:14:07 +0000
Resent-Date: Wed, 19 Jun 2013 18:14:07 +0000
Resent-Message-Id: <E1UpMtT-00005N-Gi@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mike@belshe.com>) id 1UpMtG-0008V1-E9 for ietf-http-wg@listhub.w3.org; Wed, 19 Jun 2013 18:13:54 +0000
Received: from mail-bk0-f46.google.com ([209.85.214.46]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <mike@belshe.com>) id 1UpMtF-0003Ut-4w for ietf-http-wg@w3.org; Wed, 19 Jun 2013 18:13:54 +0000
Received: by mail-bk0-f46.google.com with SMTP id na10so2468135bkb.33 for <ietf-http-wg@w3.org>; Wed, 19 Jun 2013 11:13:26 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=o59Hna8wz3VRnzQsQbC/ABG8Nno/Fm2l0UH6evIVpgA=; b=Luyfo/8S+VeZpRQ2tFzlmLFqcf1PkeCLMKX098S0Fc3DW4tS7e+e6r/tKHUUoDKHu3 aC5df/v8yUJh8Y54jT1npBC2/DpiZbwBEo3nPriAyrrxjY9DanVjs8BFSOk3U5V5d9xw nwe0aTxNyUXayYSR/zZeyIWaXCdBcsGmOTHcLtTGk+UW1gTCB7i5MnMCfK0MGbpF2F8z HvyWklQrMERzT3v7sE/eXJmypy0f4Z9vC5ydPw38wvt5cSZZHljHERlJBI+Gx6W/uKem Vuw+3MTjleICr/492H/NrVT/bu2WkDC4GAAgv7pSM2IaB37Cr15tx4oubdxwyCO6TzE9 tfbA==
MIME-Version: 1.0
X-Received: by 10.205.22.73 with SMTP id qv9mr547570bkb.8.1371665606777; Wed, 19 Jun 2013 11:13:26 -0700 (PDT)
Received: by 10.205.14.130 with HTTP; Wed, 19 Jun 2013 11:13:26 -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 11:13:26 -0700
Message-ID: <CABaLYCuhs5zmMHD9D7qNEhhUpvzWf1THHOjS5-vTu6soMUqALA@mail.gmail.com>
From: Mike Belshe <mike@belshe.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="20cf30223c113e629a04df85c941"
X-Gm-Message-State: ALoCoQlgnbndOcxQWg4DnvoCVBaLy+fma3f/ZbGps8728A06eff7c4KINWQM8tfzMnC5Z81qKf2V
Received-SPF: none client-ip=209.85.214.46; envelope-from=mike@belshe.com; helo=mail-bk0-f46.google.com
X-W3C-Hub-Spam-Status: No, score=-3.8
X-W3C-Hub-Spam-Report: AWL=-3.101, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7
X-W3C-Scan-Sig: lisa.w3.org 1UpMtF-0003Ut-4w 8b90537bff338cded3e59a9136f1cd3b
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Design: Adding ASSOCIATED_ONLY
Archived-At: <http://www.w3.org/mid/CABaLYCuhs5zmMHD9D7qNEhhUpvzWf1THHOjS5-vTu6soMUqALA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/18294
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>

Is there a specific use case that needs this?

I suspect there are two camps of browsers:
   - those that disable push
   - those that don't disable push

If you disabled push, then these aren't needed.

If you didn't disable push, do you really need to be able to deal with
batch operations on associated streams?  (I know we can contrive a use-case
on the fly right now - that is always possible.  But if we don't *really*
need it, its just more stuff in the protocol I'd rather omit until we
really know that it is needed.)

Thanks,
Mike



On Wed, Jun 19, 2013 at 11:07 AM, 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.
>
>