Re: RST_STREAM and FINAL flag

Martin Thomson <martin.thomson@gmail.com> Thu, 25 April 2013 19: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 EEEF521F9670 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 25 Apr 2013 12:32:46 -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 VDXj9m076qLo for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 25 Apr 2013 12:32:46 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 540ED21F9647 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 25 Apr 2013 12:32: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 1UVRtl-0007Ts-0b for ietf-http-wg-dist@listhub.w3.org; Thu, 25 Apr 2013 19:32:05 +0000
Resent-Date: Thu, 25 Apr 2013 19:32:05 +0000
Resent-Message-Id: <E1UVRtl-0007Ts-0b@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 1UVRtg-0007T3-CW for ietf-http-wg@listhub.w3.org; Thu, 25 Apr 2013 19:32:00 +0000
Received: from mail-we0-f172.google.com ([74.125.82.172]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1UVRtb-0007Lh-Tl for ietf-http-wg@w3.org; Thu, 25 Apr 2013 19:32:00 +0000
Received: by mail-we0-f172.google.com with SMTP id r3so2974069wey.17 for <ietf-http-wg@w3.org>; Thu, 25 Apr 2013 12:31:29 -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=VHzGgy8CmB6ynWAm7FIAM4tR+FnpyLlLH13FmOoE8hw=; b=o4G/I6QLz/VYssH4tu9WC3jh/NP6qIJnlepnMlNmoY7Gl8UPpnVRcf0cxwUZBtqZQh fcfl/Nw4CDwTmYTtTGiLklVtzxvtd4jhwi1UJJac70U5MqPnb5gPRTWqq0deMYQMxa4f jlC8LydcwrscGf8xMwqvAO6Wj5mh/p/bD7m8EnCmayGUzTvTwePtMZCi2G36E7vvpvh2 CvMT5f6HVzH87/tkSdjx1mPprdmJvkKGIOfwvnsyCqaVN7Et6dE6yp6eeA9OWwKD/oM7 D0H50Nx8/p94KKZSZzwQMyY9e7CbCeqDnt6WYw2ou06R+k+xkBIK8MMEWKTg+pFRGqN+ JjHw==
MIME-Version: 1.0
X-Received: by 10.194.109.227 with SMTP id hv3mr13775230wjb.32.1366918289837; Thu, 25 Apr 2013 12:31:29 -0700 (PDT)
Received: by 10.194.33.102 with HTTP; Thu, 25 Apr 2013 12:31:29 -0700 (PDT)
In-Reply-To: <CA+pLO_jYo0z2x1BpfGt2ahvWHDOmcn23OUiw3k7jdw22UP1=gg@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>
Date: Thu, 25 Apr 2013 12:31:29 -0700
Message-ID: <CABkgnnX30C3koONT_xQVDM-ehKd2pPi2AP6Mue1mM8tMTuEZ6Q@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Jeff Pinner <jpinner@twitter.com>
Cc: James M Snell <jasnell@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Received-SPF: pass client-ip=74.125.82.172; envelope-from=martin.thomson@gmail.com; helo=mail-we0-f172.google.com
X-W3C-Hub-Spam-Status: No, score=-3.4
X-W3C-Hub-Spam-Report: AWL=-2.627, 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 1UVRtb-0007Lh-Tl b63a53bb57d4f8aa739df00ef79dff1b
X-Original-To: ietf-http-wg@w3.org
Subject: Re: RST_STREAM and FINAL flag
Archived-At: <http://www.w3.org/mid/CABkgnnX30C3koONT_xQVDM-ehKd2pPi2AP6Mue1mM8tMTuEZ6Q@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/17574
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 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?