RST_STREAM and FINAL flag

Martin Thomson <martin.thomson@gmail.com> Thu, 25 April 2013 19: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 1A15721F8F28 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 25 Apr 2013 12:14:25 -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 vb7ReJ-FAkqz for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 25 Apr 2013 12:14:24 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 3C3B021F8A80 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 25 Apr 2013 12:14:24 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UVRbR-0002Tk-AR for ietf-http-wg-dist@listhub.w3.org; Thu, 25 Apr 2013 19:13:09 +0000
Resent-Date: Thu, 25 Apr 2013 19:13:09 +0000
Resent-Message-Id: <E1UVRbR-0002Tk-AR@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 1UVRbL-0002Se-TK for ietf-http-wg@listhub.w3.org; Thu, 25 Apr 2013 19:13:03 +0000
Received: from mail-wg0-f48.google.com ([74.125.82.48]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1UVRbH-0006Wx-4x for ietf-http-wg@w3.org; Thu, 25 Apr 2013 19:13:03 +0000
Received: by mail-wg0-f48.google.com with SMTP id f11so1664873wgh.3 for <ietf-http-wg@w3.org>; Thu, 25 Apr 2013 12:12:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=7wvr0Fb7sCwIwyThrWy5ue1n5/KdaeKA2+ASahMMq+Y=; b=BpLgZ17D6hzLF55cdZGnfhBX80L+brarFMQPJyaqCJd7ppDH8BT6GfqTpYkzfmpofC EoQwTdXboNDRiCoelM8OW5+JbcQfBdN83NvGThMyVjl4pr/w+9ZewSyQMLiEEpEqUabL SBFxINA7L88zAK7VpTKOMdQ+yGjqW2modyZidY2oAqEuOSVb9mVPGNFRbZ8RkL5xZFb9 Dinqs2lm6NHwPt1BAr8isXuAqzGpnSaasvfvogD63k21z69A9ePVLD9RmTtFaQjitFM/ IJgrqe8+9HaHmxpawfM8Cv+HO3O+VhnhGVxyag743w1J/pktTtC0byuuIcp1cGZVco75 ZYWQ==
MIME-Version: 1.0
X-Received: by 10.194.103.72 with SMTP id fu8mr77719303wjb.42.1366917153072; Thu, 25 Apr 2013 12:12:33 -0700 (PDT)
Received: by 10.194.33.102 with HTTP; Thu, 25 Apr 2013 12:12:33 -0700 (PDT)
Date: Thu, 25 Apr 2013 12:12:33 -0700
Message-ID: <CABkgnnWWAME+moOkPxMHzO7za0t8_TvHeKwWAC-z+GEk2P_+7Q@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=74.125.82.48; envelope-from=martin.thomson@gmail.com; helo=mail-wg0-f48.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.653, 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 1UVRbH-0006Wx-4x b3f0255396fc5271e336c94c9aa8da05
X-Original-To: ietf-http-wg@w3.org
Subject: RST_STREAM and FINAL flag
Archived-At: <http://www.w3.org/mid/CABkgnnWWAME+moOkPxMHzO7za0t8_TvHeKwWAC-z+GEk2P_+7Q@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/17569
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>

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.

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.