Re: RST_STREAM and FINAL flag

James M Snell <jasnell@gmail.com> Thu, 25 April 2013 19:18 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 0607A21F969B for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 25 Apr 2013 12:18:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.543
X-Spam-Level:
X-Spam-Status: No, score=-10.543 tagged_above=-999 required=5 tests=[AWL=0.056, 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 WRNlU-aU95l4 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 25 Apr 2013 12:18:21 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 4268C21F969A for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 25 Apr 2013 12:18:21 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UVRgI-00079M-LC for ietf-http-wg-dist@listhub.w3.org; Thu, 25 Apr 2013 19:18:10 +0000
Resent-Date: Thu, 25 Apr 2013 19:18:10 +0000
Resent-Message-Id: <E1UVRgI-00079M-LC@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 1UVRgA-00075W-R1 for ietf-http-wg@listhub.w3.org; Thu, 25 Apr 2013 19:18:02 +0000
Received: from mail-ob0-f173.google.com ([209.85.214.173]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <jasnell@gmail.com>) id 1UVRg9-0007Aa-P9 for ietf-http-wg@w3.org; Thu, 25 Apr 2013 19:18:02 +0000
Received: by mail-ob0-f173.google.com with SMTP id xn12so2862661obc.18 for <ietf-http-wg@w3.org>; Thu, 25 Apr 2013 12:17:35 -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=/oF6vy1GUQ/8COVEXS19mpWLOlraeyBXj3uIw+rDUCk=; b=zXwEn4BHPYzx/alnOQGHstKdEJZ5S0sO8Nv3agrGLPnheHn825BqB9W7JtX8LD1AmD 5RxqHUWnD3dd8qlfSz4lpOZPaFJl37Bqls+sz/JW3txBQg5PtYoTwatKyfd11BmboEG1 YuVrF7YkTKE5hJBsrox0hiz+VjyRW99PQAop7MxREJxHItLmrKgnoUfZIbk75icvAPDA Rjr1hoS0ADsotJ/2mGtPcuRI2o/YjSFFe2u/wHP2WFiWtNGXsD79AkT5f6hBTKN1egkc TW10A6rGr+OMJArhRvcsgHcstPZ162h4F5vV2Xv32PGhp4upX4O5DrUAgKECMZ2eWD3/ 9q8g==
X-Received: by 10.60.76.234 with SMTP id n10mr21540413oew.63.1366917455920; Thu, 25 Apr 2013 12:17:35 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.60.3.137 with HTTP; Thu, 25 Apr 2013 12:17:15 -0700 (PDT)
In-Reply-To: <CABkgnnWWAME+moOkPxMHzO7za0t8_TvHeKwWAC-z+GEk2P_+7Q@mail.gmail.com>
References: <CABkgnnWWAME+moOkPxMHzO7za0t8_TvHeKwWAC-z+GEk2P_+7Q@mail.gmail.com>
From: James M Snell <jasnell@gmail.com>
Date: Thu, 25 Apr 2013 12:17:15 -0700
Message-ID: <CABP7Rbejw54e_EHxhpn-+g3tfN=HXAkduN7Az9oh3HfxbCbhdw@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=209.85.214.173; envelope-from=jasnell@gmail.com; helo=mail-ob0-f173.google.com
X-W3C-Hub-Spam-Status: No, score=-4.4
X-W3C-Hub-Spam-Report: AWL=-1.748, BAYES_00=-1.9, 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 1UVRg9-0007Aa-P9 a05fb0c0f9296fbbf111621fa19b760d
X-Original-To: ietf-http-wg@w3.org
Subject: Re: RST_STREAM and FINAL flag
Archived-At: <http://www.w3.org/mid/CABP7Rbejw54e_EHxhpn-+g3tfN=HXAkduN7Az9oh3HfxbCbhdw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/17571
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 Thu, Apr 25, 2013 at 12:12 PM, Martin Thomson
<martin.thomson@gmail.com> wrote:
> James raised this:
>
> https://github.com/http2/http2-spec/issues/77
>
> "... what is not explicitly stated anywhere in the draft is that the
> FINAL flag for the RST_STREAM frame MUST be set. Likewise with
> GOAWAY..."
>
> I don't think that it matters what the FINAL flag says for RST_STREAM
> - processing the frame closes the stream in totality, so whether the
> stream gets half-closed in the process is largely irrelevant.  Same
> for GOAWAY.

+1 ... for completeness, the definition of the RST_STREAM and GOAWAY
frames can say that the FINAL flag is to be ignored in all cases
because the frames themselves are terminal in nature.

>
> Also, "what happens if an endpoint sends a RST_STREAM with stream
> identifier #0 ? "
>
> My take: this is very bad.  Don't do that, but if you do see it, then
> it's a PROTOCOL_ERROR.
>

Agreed.

- James