Re: [quicwg/base-drafts] Independent states and STOP_SENDING (#171)
Mike Bishop <notifications@github.com> Mon, 31 July 2017 17:51 UTC
Return-Path: <bounces+848413-a050-quic-issues=ietf.org@sgmail.github.com>
X-Original-To: quic-issues@ietfa.amsl.com
Delivered-To: quic-issues@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8DE4913262A for <quic-issues@ietfa.amsl.com>; Mon, 31 Jul 2017 10:51:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.02
X-Spam-Level:
X-Spam-Status: No, score=-2.02 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=github.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bQ5oGwTuykOW for <quic-issues@ietfa.amsl.com>; Mon, 31 Jul 2017 10:51:53 -0700 (PDT)
Received: from o11.sgmail.github.com (o11.sgmail.github.com [167.89.101.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CCB041326DE for <quic-issues@ietf.org>; Mon, 31 Jul 2017 10:51:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=github.com; h=from:reply-to:to:cc:in-reply-to:references:subject:mime-version:content-type:content-transfer-encoding:list-id:list-archive:list-post:list-unsubscribe; s=s20150108; bh=u1hvag9KbO4HIeEzdqvRRo/Y5sQ=; b=qtxqixk3JcsXN7iH W9uk3zvdIjiLymGwiCt/koQUewN0jBYAP36ExKBKFKnGrb+h1xT8XCzXqpbHADTB TpdZFJJ1gebTHu+wgnNTu8LUXFNLVvSkfEcrVU3IJ9syBOFK2ba6QGjbegHPAR7E icu+azA94lP4hU9EmWhEEHq+0fw=
Received: by filter1154p1mdw1.sendgrid.net with SMTP id filter1154p1mdw1-32035-597F6E36-48 2017-07-31 17:51:50.690839529 +0000 UTC
Received: from github-smtp2b-ext-cp1-prd.iad.github.net (github-smtp2b-ext-cp1-prd.iad.github.net [192.30.253.17]) by ismtpd0037p1mdw1.sendgrid.net (SG) with ESMTP id 7_YLXUBmTaCSs5O1rpfm0g for <quic-issues@ietf.org>; Mon, 31 Jul 2017 17:51:50.612 +0000 (UTC)
Date: Mon, 31 Jul 2017 17:51:50 +0000
From: Mike Bishop <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+0166e4abfe3b3911979e9aa0a7d37b0c5f8e98ad72c9167d92cf000000011597303692a169ce0c04da41@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/pull/171/review/53284691@github.com>
In-Reply-To: <quicwg/base-drafts/pull/171@github.com>
References: <quicwg/base-drafts/pull/171@github.com>
Subject: Re: [quicwg/base-drafts] Independent states and STOP_SENDING (#171)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_597f6e36456d1_14e23fbd823b7c3c685a5"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: MikeBishop
X-GitHub-Recipient: quic-issues
X-GitHub-Reason: subscribed
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address: quic-issues@ietf.org
X-SG-EID: l64QuQ2uJCcEyUykJbxN122A6QRmEpucztpreh3Pak2noNWmx16wdchA41oZr8lZIc/ZZvHW5NBiCo 9MbTzpIjN6kE3IiIaDI6XXLeEGJCArFgUOYq1v505lIAwG4ftVxwhWOcoPvcnJnR0QaSVMPOFXfFmX p68Iqd/T6eJjQtDhnzWq2MUFizBCxNmDT7Bj93/n5BcwvIyKZizVRbmfcCu7iCgnk60K7DgMQ6PsKB o=
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/mtdLV1Ws1HKHbCSi6TG8GGQUUz8>
X-BeenThere: quic-issues@ietf.org
X-Mailman-Version: 2.1.22
List-Id: Notification list for GitHub issues related to the QUIC WG <quic-issues.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic-issues>, <mailto:quic-issues-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic-issues/>
List-Post: <mailto:quic-issues@ietf.org>
List-Help: <mailto:quic-issues-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic-issues>, <mailto:quic-issues-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 31 Jul 2017 17:51:57 -0000
MikeBishop commented on this pull request.
> the terminal STREAM frame that contains a FIN flag.
-A stream becomes "closed" when the endpoint sends and receives acknowledgment of
-a RST_STREAM frame.
+A stream also becomes "closed" when the endpoint sends a RST_STREAM frame.
Hm, that's probably a change that came after my PR forked and I lost in the merge. But I thought the transition to "closed" on the sender was immediate on sending the frame? I'll have to look at history and see if I can find when that changed.
> @@ -2527,6 +2546,26 @@ Reordering might cause frames to be received after closing, see
{{state-hc-remote}}.
+## Solicited State Transitions
+
+If an endpoint is no longer interested in the data being received, it MAY send a
+STOP_SENDING frame on a stream in the "open" or "half-closed (local)" state to
+request closure of the stream in the opposite direction. This typically
+indicates that the receiving application is no longer reading from the stream,
+but is not a guarantee that incoming data will be ignored.
+
+STREAM frames received after sending STOP_SENDING are still counted toward the
Recommendation. STOP_SENDING is advisory that your data is being discarded and is pointless, but doesn't force a transition. (The SHOULD is at the paragraph where your next comment was located.)
> @@ -2527,6 +2546,26 @@ Reordering might cause frames to be received after closing, see
{{state-hc-remote}}.
+## Solicited State Transitions
+
+If an endpoint is no longer interested in the data being received, it MAY send a
+STOP_SENDING frame on a stream in the "open" or "half-closed (local)" state to
+request closure of the stream in the opposite direction. This typically
+indicates that the receiving application is no longer reading from the stream,
+but is not a guarantee that incoming data will be ignored.
+
+STREAM frames received after sending STOP_SENDING are still counted toward the
+connection and stream flow-control windows. Even though these frames will be
+discarded, because they are sent before their sender receives the STOP_SENDING,
+the sender will consider the frames to count against its flow-control windows.
+
+Upon receipt of a STOP_SENDING frame on a stream in the "open" state, an
Good point on hc-remote -- I'll update that. The point of the paragraph is that if you're currently transmitting data, you SHOULD cut it off. If you're done transmitting data, but you might still have retransmissions going, you MAY reset the stream or just finish your retransmissions as normal, whichever is easier.
The QUIC_RECEIVED_RST error code is there to make it easier to distinguish RST-because-error from RST-because-you-said-to.
> +If an endpoint is no longer interested in the data being received, it MAY send a
+STOP_SENDING frame on a stream in the "open" or "half-closed (local)" state to
+request closure of the stream in the opposite direction. This typically
+indicates that the receiving application is no longer reading from the stream,
+but is not a guarantee that incoming data will be ignored.
+
+STREAM frames received after sending STOP_SENDING are still counted toward the
+connection and stream flow-control windows. Even though these frames will be
+discarded, because they are sent before their sender receives the STOP_SENDING,
+the sender will consider the frames to count against its flow-control windows.
+
+Upon receipt of a STOP_SENDING frame on a stream in the "open" state, an
+endpoint SHOULD send a RST_STREAM with an error code of QUIC_RECEIVED_RST. If
+the STOP_SENDING frame is received on a stream that is already in the
+"half-closed (local)" or "closed" states, a RST_STREAM frame MAY still be sent
+in order to cancel retransmission of previously-sent STREAM frames.
Kind of. The spec says that a stream isn't closed until you've successfully delivered all STREAM frames up through the FIN flag; that means you have to keep retransmitting until everything gets through to close a stream that way. However, if the recipient is actually ignoring your data anyway, it's not clear how tightly they'll hold you to that.
For state machine consistency, if you're not retransmitting data, you're supposed to (reliably) send a RST_STREAM to indicate that.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/quicwg/base-drafts/pull/171#discussion_r130411452
- [quicwg/base-drafts] First pass at REQUEST_RST (#… Mike Bishop
- Re: [quicwg/base-drafts] First pass at REQUEST_RS… Mike Bishop
- Re: [quicwg/base-drafts] First pass at REQUEST_RS… Martin Thomson
- Re: [quicwg/base-drafts] First pass at REQUEST_RS… Mike Bishop
- Re: [quicwg/base-drafts] First pass at REQUEST_RS… Mike Bishop
- Re: [quicwg/base-drafts] First pass at REQUEST_RS… Mike Bishop
- Re: [quicwg/base-drafts] First pass at REQUEST_RS… Mike Bishop
- Re: [quicwg/base-drafts] First pass at REQUEST_RS… Mike Bishop
- Re: [quicwg/base-drafts] First pass at REQUEST_RS… Mike Bishop
- Re: [quicwg/base-drafts] First pass at REQUEST_RS… Martin Thomson
- Re: [quicwg/base-drafts] First pass at REQUEST_RS… Martin Thomson
- Re: [quicwg/base-drafts] First pass at REQUEST_RS… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and R… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and R… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and R… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and D… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and D… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and D… Igor Lubashev
- Re: [quicwg/base-drafts] Independent states and D… Martin Thomson
- Re: [quicwg/base-drafts] Independent states and D… Igor Lubashev
- Re: [quicwg/base-drafts] Independent states and D… Martin Thomson
- Re: [quicwg/base-drafts] Independent states and D… ianswett
- Re: [quicwg/base-drafts] Independent states and D… Igor Lubashev
- Re: [quicwg/base-drafts] Independent states and D… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and D… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and D… Igor Lubashev
- Re: [quicwg/base-drafts] Independent states and D… Martin Thomson
- Re: [quicwg/base-drafts] Independent states and D… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and D… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and D… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and D… Martin Thomson
- Re: [quicwg/base-drafts] Independent states and D… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and D… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and D… Martin Thomson
- Re: [quicwg/base-drafts] Independent states and D… Martin Thomson
- Re: [quicwg/base-drafts] Independent states and D… Martin Thomson
- Re: [quicwg/base-drafts] Independent states and D… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and D… Martin Thomson
- Re: [quicwg/base-drafts] Independent states and D… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and D… Christian Huitema
- Re: [quicwg/base-drafts] Independent states and D… Christian Huitema
- Re: [quicwg/base-drafts] Independent states and D… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and D… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and D… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and D… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and D… Martin Thomson
- Re: [quicwg/base-drafts] Independent states and D… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and D… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and D… ianswett
- Re: [quicwg/base-drafts] Independent states and D… ianswett
- Re: [quicwg/base-drafts] Independent states and D… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and D… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and D… ianswett
- Re: [quicwg/base-drafts] Independent states and S… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and S… Martin Thomson
- Re: [quicwg/base-drafts] Independent states and S… Subodh Iyengar
- Re: [quicwg/base-drafts] Independent states and S… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and S… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and S… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and S… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and S… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and S… janaiyengar
- Re: [quicwg/base-drafts] Independent states and S… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and S… Mike Bishop
- Re: [quicwg/base-drafts] Independent states and S… Martin Thomson