Re: Design Issue: HEADERS+PRIORITY "MUST be used" for each stream that is created??

Martin Thomson <martin.thomson@gmail.com> Fri, 26 April 2013 20: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 42D6321F99A9 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 26 Apr 2013 13:14:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.533
X-Spam-Level:
X-Spam-Status: No, score=-8.533 tagged_above=-999 required=5 tests=[AWL=2.066, 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 zcJG-haFL8MX for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 26 Apr 2013 13:14:47 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 9D60721F99A7 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 26 Apr 2013 13:14:47 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UVp1O-0005i6-KL for ietf-http-wg-dist@listhub.w3.org; Fri, 26 Apr 2013 20:13:30 +0000
Resent-Date: Fri, 26 Apr 2013 20:13:30 +0000
Resent-Message-Id: <E1UVp1O-0005i6-KL@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 1UVp1J-0005fW-Pw for ietf-http-wg@listhub.w3.org; Fri, 26 Apr 2013 20:13:25 +0000
Received: from mail-we0-f175.google.com ([74.125.82.175]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1UVp1I-0000iC-Oo for ietf-http-wg@w3.org; Fri, 26 Apr 2013 20:13:25 +0000
Received: by mail-we0-f175.google.com with SMTP id i48so790964wef.6 for <ietf-http-wg@w3.org>; Fri, 26 Apr 2013 13:12:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=Xu9N3Pgxc+z1jr22B8/wB8S9OaZHQvrJmpzNTCz3RSc=; b=VCTzxD0ZcSEg30pXpWf1s9wHiJaC+Lk5vFrJM4rIjs3uNBVTZvu9bg8lFvxbWK6vrR yYRzURZL7LiTuV5vEiD1LjgMMW4yhc++l7fIFACBXXAUEtA0c00tx/t1TsQVAM334jCf dDfaDl470MJ5K/3OAORPk7dq/UByPJsocTeCuQI96Uy3hjkXOdXoci5bUlQtzsaDZx15 alAj2ARedlNuC8SEmrCvyPwHuW7TyoLYMCcjwa8wifq/1IMGqsO0+kqJFXqbVdBPzAOj TNoxRKP9mllxHzGnj80xiazJlWS3+clF3YKB6lVr4pqRPHTYsd94PtIhXMooNxao0ZRy 1iAQ==
MIME-Version: 1.0
X-Received: by 10.194.235.196 with SMTP id uo4mr12558093wjc.30.1367007178661; Fri, 26 Apr 2013 13:12:58 -0700 (PDT)
Received: by 10.194.33.102 with HTTP; Fri, 26 Apr 2013 13:12:58 -0700 (PDT)
In-Reply-To: <CABP7Rbe808o_rqxnvVvH6OJxqFSvOnoLgnaQT5goFabBF_zi0A@mail.gmail.com>
References: <CABP7Rbe808o_rqxnvVvH6OJxqFSvOnoLgnaQT5goFabBF_zi0A@mail.gmail.com>
Date: Fri, 26 Apr 2013 13:12:58 -0700
Message-ID: <CABkgnnUBnr8+_bbFRGMhnWSkGK5N+DoX75m8bHuLfa0Zbq4=CA@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=74.125.82.175; envelope-from=martin.thomson@gmail.com; helo=mail-we0-f175.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.657, 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 1UVp1I-0000iC-Oo d81dda285b70fac9c6fcd827f85e31b0
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Design Issue: HEADERS+PRIORITY "MUST be used" for each stream that is created??
Archived-At: <http://www.w3.org/mid/CABkgnnUBnr8+_bbFRGMhnWSkGK5N+DoX75m8bHuLfa0Zbq4=CA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/17620
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>

The requirement for HEADERS+PRIORITY should only apply to the HTTP
request/response exchange, not everything.  Tier 3 and all that.

On 26 April 2013 11:47, James M Snell <jasnell@gmail.com>; wrote:
> In the current draft (-02), under the definition of HEADERS+PRIORITY,
> we say that the frame "MUST be used for each stream that is created"..
>
> Is this really true? This is inconsistent with other parts of the spec...
>
> Elsewhere we say that streams are created by sending any frame that
> references an unused stream ID.
>
> We also say that PUSH_PROMISE frames are followed up by a HEADERS
> frame (not HEADERS+PRIORITY).
>
> I believe the intent here is that streams ought only to be created
> when sending a HEADERS, HEADERS+PRIORITY or PUSH_PROMISE frame that
> references an unused stream ID.
>
> A DATA frame that references a previously unused Stream ID ought to
> result in a PROTOCOL_ERROR.
>
> (which brings up an interesting question: what happens if I receive an
> RST_STREAM that references a previously unused stream id? Based on the
> rules so far, that would mean the stream ID would be closed before
> there is ever a chance to use it... possible DOS vector?)
>