Re: Stream State and PRIORITY Frames

Tom Bergan <tombergan@chromium.org> Wed, 18 January 2017 06:14 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@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 91E8C128B44 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Jan 2017 22:14:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.719
X-Spam-Level:
X-Spam-Status: No, score=-9.719 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=chromium.org
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UZAGqYHkT68u for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Jan 2017 22:14:43 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CABCA129458 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 17 Jan 2017 22:14:43 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cTjSm-0002Tz-W8 for ietf-http-wg-dist@listhub.w3.org; Wed, 18 Jan 2017 06:11:17 +0000
Resent-Date: Wed, 18 Jan 2017 06:11:16 +0000
Resent-Message-Id: <E1cTjSm-0002Tz-W8@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <tombergan@chromium.org>) id 1cTjSi-0002T9-GE for ietf-http-wg@listhub.w3.org; Wed, 18 Jan 2017 06:11:12 +0000
Received: from mail-wm0-f44.google.com ([74.125.82.44]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <tombergan@chromium.org>) id 1cTjSc-0005Da-95 for ietf-http-wg@w3.org; Wed, 18 Jan 2017 06:11:07 +0000
Received: by mail-wm0-f44.google.com with SMTP id c206so9012559wme.0 for <ietf-http-wg@w3.org>; Tue, 17 Jan 2017 22:10:45 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=E1JKP2FRKSvcwK5byVYwog/PaMVEcsjpMZKgV/9VBpg=; b=Z43FvIeK3roQTz/WY1VPGD4x83UgCPu3iQk6WRp47j43WMujRdSA+UnycWkipJK4Fy WGx4GHBDE9vRjB5b41cFewGqYKtmV7VRl453C1XeBY2Y78Ay9e8SiE51MIXXjfAtoiSU 04NpgejfDH8tEBj23B1mxzKK5+bGglhJGTFvM=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=E1JKP2FRKSvcwK5byVYwog/PaMVEcsjpMZKgV/9VBpg=; b=B6ArA+hyBx28qlLk79x2pnkv/k2/DJ6e0hNnZ/jAYyMlzCUpPY6TTqzUnHr+HIB95r nRMzlDMx7dVfYH5z/RuxW+MtmVRhs8aduHvGliPJCsbQuuSOpp//VrSx5JqfzB1fesDq GOEV8iKvY2cX07kt6MfJY067vAXLPelsvoM0Xo04wBewy4VmUIZULMJR6YNYqRWGr0YL T2CaSm2Szp4I47yrPlTr4/OhJOtEdGVRe9iu1z1Ds7hBHIlsLW8Ayh/lTjMjMLFka5BQ aYDxP9aaYr0aauKXQurUXGJYW1K6ACSRikA+UkloDpvcL8ywPoGfVMXdhHK6FZgnRtDZ KAwA==
X-Gm-Message-State: AIkVDXJtAg01eAOlWKd0kYE40ObzaL6zWOXBfCkKPPQT3ry2Etp6Zyc+m5QHh176VnvGsxo9
X-Received: by 10.223.138.188 with SMTP id y57mr1135023wry.191.1484719838818; Tue, 17 Jan 2017 22:10:38 -0800 (PST)
Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com. [74.125.82.45]) by smtp.gmail.com with ESMTPSA id c132sm37169156wme.21.2017.01.17.22.10.37 for <ietf-http-wg@w3.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jan 2017 22:10:38 -0800 (PST)
Received: by mail-wm0-f45.google.com with SMTP id r144so8957216wme.1 for <ietf-http-wg@w3.org>; Tue, 17 Jan 2017 22:10:37 -0800 (PST)
X-Received: by 10.223.136.85 with SMTP id e21mr1159669wre.28.1484719837329; Tue, 17 Jan 2017 22:10:37 -0800 (PST)
MIME-Version: 1.0
Received: by 10.28.135.201 with HTTP; Tue, 17 Jan 2017 22:10:36 -0800 (PST)
In-Reply-To: <CAFn2buDrHtB1z16iTWE945bU_qhxTypr05A=5B_nrQoyQijyOw@mail.gmail.com>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAPyZ6=Kh3n+RJi=RqgFBojgRDpfJ=nbr0i4kvO20ET0Kt7UA8Q@mail.gmail.com> <CABkgnnWmPdDXVS+CvmChRjyqkJooSKgy6KdUdN+9nGzOyJazhg@mail.gmail.com> <CAFn2buDrHtB1z16iTWE945bU_qhxTypr05A=5B_nrQoyQijyOw@mail.gmail.com>
From: Tom Bergan <tombergan@chromium.org>
Date: Tue, 17 Jan 2017 22:10:36 -0800
X-Gmail-Original-Message-ID: <CA+3+x5HBQswdhFKKNFFHN+t5yaqNufSk_artC1iUwwOvCipZGQ@mail.gmail.com>
Message-ID: <CA+3+x5HBQswdhFKKNFFHN+t5yaqNufSk_artC1iUwwOvCipZGQ@mail.gmail.com>
To: Scott Mitchell <scott.k.mitch1@gmail.com>
Cc: Martin Thomson <martin.thomson@gmail.com>, Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="001a114925387f061a0546584698"
Received-SPF: pass client-ip=74.125.82.44; envelope-from=tombergan@chromium.org; helo=mail-wm0-f44.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cTjSc-0005Da-95 795d1af573cdb7ca528b30ddb61cdb9b
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/CA+3+x5HBQswdhFKKNFFHN+t5yaqNufSk_artC1iUwwOvCipZGQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33314
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 Tue, Jan 17, 2017 at 2:43 PM, Scott Mitchell <scott.k.mitch1@gmail.com>
wrote:

> From my perspective I would like to see two clarifications:
>
> 1. It is clear to me that PRIORITY doesn't impact state. However Section
> 5.1.1 states "first use of a new stream identifier" which makes no
> reference to stream state. If stream state is important/implied here better
> to be specific about it. I don't think the one-off example below this text
> is sufficient to convey the intended implications of this statement.
>
> 2. Section 5.1.2 states "Streams in either of the 'reserved' states do
> not count toward the stream limit." which seems to conflict with section
> 8.2.2 "A client can use the SETTINGS_MAX_CONCURRENT_STREAMS setting to
> limit the number of responses that can be concurrently pushed by a server.".
> These two statements appear to contradict each other. Since
> SETTINGS_MAX_CONCURRENT_STREAMS is really the only mechanism to limit
> resources due to server push I'm assuming section 5.1.2 is overly
> restrictive.
>

This is surprising (to me, at least) but I don't believe there is a
contradiction. You can send an infinite number of PUSH_PROMISEs without
hitting SETTINGS_MAX_CONCURRENT_STREAMS. A pushed stream doesn't count
against the concurrent stream limit until you've sent the response HEADERS
on that pushed stream. See the related question I asked previously:
https://lists.w3.org/Archives/Public/ietf-http-wg/2016JulSep/0599.html


> On Tue, Jan 17, 2017 at 2:27 PM, Martin Thomson <martin.thomson@gmail.com>
> wrote:
>
>> On 18 January 2017 at 01:37, Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
>> wrote:
>> > If my understanding is correct, this only refers to the new stream ID
>> used
>> > by HEADERS, and PUSH_PROMISE frames which open or reserve streams.  The
>> > example text following that statement uses HEADERS which opens new
>> stream.
>> > PRIORITY frame does not change stream state, and there is no reason to
>> close
>> > all unused streams lower than bearing stream ID.  That said, I agree
>> that
>> > this is not crystal clear in the document.  In practice, this is
>> probably
>> > rather rare case.
>>
>> This is, I think, the expectation.
>>
>> I think that we probably want to clarify the point by explicitly
>> saying that PRIORITY doesn't affect stream states.  We say that it can
>> be sent in any state, but we don't also mention that important point.
>> Do people here agree that an erratum on this point is appropriate
>> here?
>>
>
>