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

James M Snell <jasnell@gmail.com> Fri, 26 April 2013 20:55 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 21CA021F99BD for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 26 Apr 2013 13:55:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.324
X-Spam-Level:
X-Spam-Status: No, score=-10.324 tagged_above=-999 required=5 tests=[AWL=0.275, 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 mNktQ21rvsMY for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 26 Apr 2013 13:55:27 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 46FB021F99A9 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 26 Apr 2013 13:55:27 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UVpfg-0004c6-DK for ietf-http-wg-dist@listhub.w3.org; Fri, 26 Apr 2013 20:55:08 +0000
Resent-Date: Fri, 26 Apr 2013 20:55:08 +0000
Resent-Message-Id: <E1UVpfg-0004c6-DK@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <jasnell@gmail.com>) id 1UVpfb-0004Pj-PL for ietf-http-wg@listhub.w3.org; Fri, 26 Apr 2013 20:55:03 +0000
Received: from mail-oa0-f53.google.com ([209.85.219.53]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <jasnell@gmail.com>) id 1UVpfa-0000ov-Iw for ietf-http-wg@w3.org; Fri, 26 Apr 2013 20:55:03 +0000
Received: by mail-oa0-f53.google.com with SMTP id m6so4443130oag.12 for <ietf-http-wg@w3.org>; Fri, 26 Apr 2013 13:54:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=MRtqrNYlw4jnSzslRP3u6gV1wRUNlvU5YXl2Vl9jtxY=; b=Xr5fSmj/V7kCDbXAyWyu3VtWTM1M3K2GPX6s/L1gJZCMzEtzrYQgh2rTakFudDyOyT q7YxMvLt6201lyqerF3+5taJ/z/fUDsgaHWJGhSj7KBZXG2epLFslFuJOD4g0M0wve8/ dmbDpkt7OZ7olUF5z8m8XOCfczUnct/5PnsMDGI117GIcA+XHaxqkiGrWFaZp/K3Bm3P hH3rYMtBNBdiHDFPHskJsBt27HjplxZTg67pN2x9iiAya4FA2TXx2BReGIL4uw7N4h8Z CRyWoKHnQ3m5LYyd3HtDhU8FXtQjqEXGeQ98JJUpAmatMhybDptekJ6TsgjrZDpYWU9B CeZg==
X-Received: by 10.60.60.227 with SMTP id k3mr23960870oer.97.1367009676442; Fri, 26 Apr 2013 13:54:36 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.60.3.137 with HTTP; Fri, 26 Apr 2013 13:54:16 -0700 (PDT)
In-Reply-To: <CABkgnnW5tDqVwRJE99Fkd5YFeAcRZYPV40QjuBrdrZxbKj6+9w@mail.gmail.com>
References: <CABP7Rbe808o_rqxnvVvH6OJxqFSvOnoLgnaQT5goFabBF_zi0A@mail.gmail.com> <CABkgnnUBnr8+_bbFRGMhnWSkGK5N+DoX75m8bHuLfa0Zbq4=CA@mail.gmail.com> <CABP7RbeAb71vTmnGbR65wVepyT=WykdRcRNFYDuWoprWD7+2gg@mail.gmail.com> <CABkgnnW5tDqVwRJE99Fkd5YFeAcRZYPV40QjuBrdrZxbKj6+9w@mail.gmail.com>
From: James M Snell <jasnell@gmail.com>
Date: Fri, 26 Apr 2013 13:54:16 -0700
Message-ID: <CABP7RbeEzozvxq4rAeL-+QgyctPxC4cXLC=7gPOYQS0cUqkDcQ@mail.gmail.com>
To: Martin Thomson <martin.thomson@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.219.53; envelope-from=jasnell@gmail.com; helo=mail-oa0-f53.google.com
X-W3C-Hub-Spam-Status: No, score=-3.4
X-W3C-Hub-Spam-Report: AWL=-2.613, 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: maggie.w3.org 1UVpfa-0000ov-Iw fdf25600ef3bb4096d25467806943e4f
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/CABP7RbeEzozvxq4rAeL-+QgyctPxC4cXLC=7gPOYQS0cUqkDcQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/17625
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>

Well, until that case is made, we don't have very many good reasons to
allow DATA frames with preceding headers-bearing frames. Also, keep in
mind that it's perfectly legal to send a HEADERS frame with an empty
set of HEADERS. It the WebSockets case does not require any preceding
headers (which I rather doubt), it would still be simple enough to
send an empty HEADERS frame to establish the stream before sending the
DATA frames.


On Fri, Apr 26, 2013 at 1:49 PM, Martin Thomson
<martin.thomson@gmail.com> wrote:
> On 26 April 2013 13:43, James M Snell <jasnell@gmail.com> wrote:
>> I think I disagree on that point and say that I think it's much safer
>> if we require that streams be initiated with only headers-bearing
>> frames.
>>
>> Imagine, for instance, that a sender sends along a DATA frame with a
>> new, previously unused stream identifier. Without an associated
>> headers frame I have absolutely no context with which to determine
>> what I need to do with that DATA frame. Likewise if I receive an
>> RST_STREAM that references a previously unused stream identifier. If
>> there's absolutely nothing that I can reliably do with it, or not
>> reliable way that I can interpret it without additional context, then
>> we should not allow it.
>
> I believe that this is exactly the scenario that the websockets
> binding will take advantage of.  (Maybe there is some need to expose
> some header information there, but that's a case that needs to be made
> for that specific use of the framing layer.)