Re: Design Issue: Which frames are allowed to reference Stream ID #0 and which aren't?

Martin Thomson <martin.thomson@gmail.com> Fri, 26 April 2013 18:39 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 546CE21F9579 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 26 Apr 2013 11:39:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level:
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[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 ZI1SKoPkNh+9 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 26 Apr 2013 11:39:46 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id D29B521F890F for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 26 Apr 2013 11:39:46 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UVnYQ-0007XY-H7 for ietf-http-wg-dist@listhub.w3.org; Fri, 26 Apr 2013 18:39:30 +0000
Resent-Date: Fri, 26 Apr 2013 18:39:30 +0000
Resent-Message-Id: <E1UVnYQ-0007XY-H7@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 1UVnYM-0007UZ-5o for ietf-http-wg@listhub.w3.org; Fri, 26 Apr 2013 18:39:26 +0000
Received: from mail-wi0-f173.google.com ([209.85.212.173]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1UVnYL-0004BJ-IF for ietf-http-wg@w3.org; Fri, 26 Apr 2013 18:39:26 +0000
Received: by mail-wi0-f173.google.com with SMTP id c10so944512wiw.12 for <ietf-http-wg@w3.org>; Fri, 26 Apr 2013 11:38:59 -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=y+4rFaBhjjPPdt/XjCwiwQVfIe4UxU+YsRwp0i62TB8=; b=gxOWOvZlnwYFQwGHeM2FW7DeuK9gm8v5NSUo8zzHX7au/p1uuQXj/eNXjGszuGrA1b 7ZUFkFkWRURYBgRK464xNAjnRKk1aBf/EwGv9XUynSxp30oYXuF2As9DPHfY5s0cPU+L R8VNgkOgEnpfvNSwHRIOkrHlRmgxdJR/q/CSlwsN/nRAjnHM9upFPvyZtoi5eBcOyqI8 WDNK6ooj7F4Vs+Fv8rm5+/ZZSQaDFAKCr5HdNxpBAq2WWJwv7m82Ws8U6AgZr0lRdW4N OIJsfQiCme4d6MwzUsJBPrMMOh8bTB74nS8eMaJ+e3hwkMcH7irPN1EtGiDzggYdFfNe vUSg==
MIME-Version: 1.0
X-Received: by 10.194.109.227 with SMTP id hv3mr19943940wjb.32.1367001539509; Fri, 26 Apr 2013 11:38:59 -0700 (PDT)
Received: by 10.194.33.102 with HTTP; Fri, 26 Apr 2013 11:38:59 -0700 (PDT)
In-Reply-To: <CABP7RbeOM_-fYHTt2UFcxTkXb8bU03_shQkq1p-99VWA+hCnXg@mail.gmail.com>
References: <CABP7RbeOM_-fYHTt2UFcxTkXb8bU03_shQkq1p-99VWA+hCnXg@mail.gmail.com>
Date: Fri, 26 Apr 2013 11:38:59 -0700
Message-ID: <CABkgnnUpwM8aOzwt=Yb7_TsvNheotMYb+BD17eE7P4QaZSCdeA@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.173; envelope-from=martin.thomson@gmail.com; helo=mail-wi0-f173.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.684, 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 1UVnYL-0004BJ-IF ba52da80c6999e6861e4fa61d502fff0
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Design Issue: Which frames are allowed to reference Stream ID #0 and which aren't?
Archived-At: <http://www.w3.org/mid/CABkgnnUpwM8aOzwt=Yb7_TsvNheotMYb+BD17eE7P4QaZSCdeA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/17617
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 26 April 2013 11:28, James M Snell <jasnell@gmail.com> wrote:
> One can look at the various frame types and determine which are
> obviously intended for use with streams and which are for the session
> but we need to be clear on exactly what happens when various types of
> frames reference Stream ID #0.
>
> For instance, if a DATA frame reference Stream ID #0, I would say that
> the result MUST be a protocol error. (Likewise with HEADERS frames)

DATA on stream 0 is an error, we need to make that clear.

> Likewise, what exactly does it mean for a PING Frame to specify a
> Stream Identifier? Or are all PING Frames required to use Stream ID
> #0?

PING on non-stream 0 is an error.  The problem there is that PING
demands a PONG and you cannot know whether it is possible for the peer
to do that.