Re: RST_STREAM and FINAL flag

James M Snell <jasnell@gmail.com> Fri, 26 April 2013 17:32 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 E7B4A21F990F for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 26 Apr 2013 10:32:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.149
X-Spam-Level:
X-Spam-Status: No, score=-10.149 tagged_above=-999 required=5 tests=[AWL=0.450, 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 haIgOqpHRDon for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 26 Apr 2013 10:32:42 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 6BC2B21F9926 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 26 Apr 2013 10:32:42 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UVmUm-0007Ee-3c for ietf-http-wg-dist@listhub.w3.org; Fri, 26 Apr 2013 17:31:40 +0000
Resent-Date: Fri, 26 Apr 2013 17:31:40 +0000
Resent-Message-Id: <E1UVmUm-0007Ee-3c@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <jasnell@gmail.com>) id 1UVmUh-0007Dy-Ak for ietf-http-wg@listhub.w3.org; Fri, 26 Apr 2013 17:31:35 +0000
Received: from mail-ob0-f180.google.com ([209.85.214.180]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <jasnell@gmail.com>) id 1UVmUc-00013k-T7 for ietf-http-wg@w3.org; Fri, 26 Apr 2013 17:31:35 +0000
Received: by mail-ob0-f180.google.com with SMTP id uk5so3681746obc.39 for <ietf-http-wg@w3.org>; Fri, 26 Apr 2013 10:31:05 -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=GEXCA/k0tPXnLvG3SeYYZrMBKksmqV/GCLA4NTJ94q0=; b=sj1ZUXYfX5emuB6HUS97+ktrVWBBoANFVYJBQZUgNKiaCSMvcbr6rWUXkcDaZfb2VN iM78skFCOsnATK18++d3QlV74fgOORuEOi+CVCXYo04f9piYIBLiGL6iBLv0Y47y1NmA pnWVZCJz5QFFJRL2iFc8eCIS0+ggN88iWonYQGLYjss0qR4hX0wcsifKZrW5XVkeu3JM XvWtcmGlS9L7vNEjtdFx90xxLxQyTEaKab1iGe9uYFrEwioHD4qJTNB52eP/Q9euVOPc MRBsplNGQ+uk26blC3M1O5exyWY46/jC8sAnB7CuaRD3wfyKl9AGt39dlC1i+ns0/DfA JrFg==
X-Received: by 10.60.92.41 with SMTP id cj9mr18628156oeb.31.1366997464933; Fri, 26 Apr 2013 10:31:04 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.60.3.137 with HTTP; Fri, 26 Apr 2013 10:30:44 -0700 (PDT)
In-Reply-To: <CABkgnnX30C3koONT_xQVDM-ehKd2pPi2AP6Mue1mM8tMTuEZ6Q@mail.gmail.com>
References: <CABkgnnWWAME+moOkPxMHzO7za0t8_TvHeKwWAC-z+GEk2P_+7Q@mail.gmail.com> <CABP7Rbejw54e_EHxhpn-+g3tfN=HXAkduN7Az9oh3HfxbCbhdw@mail.gmail.com> <CA+pLO_jYo0z2x1BpfGt2ahvWHDOmcn23OUiw3k7jdw22UP1=gg@mail.gmail.com> <CABkgnnX30C3koONT_xQVDM-ehKd2pPi2AP6Mue1mM8tMTuEZ6Q@mail.gmail.com>
From: James M Snell <jasnell@gmail.com>
Date: Fri, 26 Apr 2013 10:30:44 -0700
Message-ID: <CABP7RbdqwiwcdXOts1bOg4es9iMWygPN-LZGvZOpdcBOg0sXSg@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: Jeff Pinner <jpinner@twitter.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Received-SPF: pass client-ip=209.85.214.180; envelope-from=jasnell@gmail.com; helo=mail-ob0-f180.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.660, 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 1UVmUc-00013k-T7 5a61a66cc21719f2f51b8e27e5865692
X-Original-To: ietf-http-wg@w3.org
Subject: Re: RST_STREAM and FINAL flag
Archived-At: <http://www.w3.org/mid/CABP7RbdqwiwcdXOts1bOg4es9iMWygPN-LZGvZOpdcBOg0sXSg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/17609
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>

I have an edit for this in my local fork. I will submit a pull request
later today that can be reviewed.

On Thu, Apr 25, 2013 at 12:31 PM, Martin Thomson
<martin.thomson@gmail.com>; wrote:
> James wrote:
>>> +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.
>
> Agreed, clarification == good.
>
> On 25 April 2013 12:21, Jeff Pinner <jpinner@twitter.com>; wrote:
>> GOAWAY and RST_STREAM have different semantics -- but I would note that
>> RST_STREAM is different than FINAL because it puts the stream in a closed
>> state and not half-closed and thus behaves differently when the initiator of
>> the stream sends it (RST_STREAM w/ CANCEL for example)
>
> Absolutely.  The initiator can abandon a stream, and RST_STREAM
> signals three things: I wont send any more, what I sent isn't
> complete, and don't send me any more.  FINAL covers only the first
> part of that.
>
> But I don't see how those differences are relevant to this case.  Can
> you expand?