Re: [quicwg/base-drafts] Split error code space (#722)
Martin Thomson <notifications@github.com> Tue, 15 August 2017 00:34 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 D0B3413246F for <quic-issues@ietfa.amsl.com>; Mon, 14 Aug 2017 17:34:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.019
X-Spam-Level:
X-Spam-Status: No, score=-2.019 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, 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 HIHjS6VSYPjH for <quic-issues@ietfa.amsl.com>; Mon, 14 Aug 2017 17:34:41 -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 EF1EB13246C for <quic-issues@ietf.org>; Mon, 14 Aug 2017 17:34:40 -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=O9Y9LJ5NGtv0IrwKJVqLOMrTWPU=; b=MX41DZDnM+RzyZhl 8zSmmCOb/GeKPIQv1XLaM4X7i+xj1Ahyd3DNW8AWvHdVJKpE/1rX8koabyUQs40s LfAkuIuoxmkMWOi63iFjv3WJvnZ4t3KDsVfaGk2ydhIznW2JEnKnvHDa8Vz6IyuC BZFRb1fnlNQZ1gJlMP6kBBKGhgw=
Received: by filter0800p1mdw1.sendgrid.net with SMTP id filter0800p1mdw1-11840-59924164-1B 2017-08-15 00:33:40.134553481 +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 ismtpd0024p1mdw1.sendgrid.net (SG) with ESMTP id azStcJ0YTWmMC4V_5cu5gA for <quic-issues@ietf.org>; Tue, 15 Aug 2017 00:33:40.109 +0000 (UTC)
Date: Tue, 15 Aug 2017 00:33:51 +0000
From: Martin Thomson <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+0166e4abd30ea921ad485f1dfaf11902f7bf785a121b849c92cf0000000115aa036392a169ce0edfabce@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/pull/722/review/56237490@github.com>
In-Reply-To: <quicwg/base-drafts/pull/722@github.com>
References: <quicwg/base-drafts/pull/722@github.com>
Subject: Re: [quicwg/base-drafts] Split error code space (#722)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_599241638b952_38fd3fa036e0bc3828336"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: martinthomson
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: l64QuQ2uJCcEyUykJbxN122A6QRmEpucztpreh3Pak2ZSy8FbnyS7TvgV1GD2tnQn3l6Xz/RUvBlYf 6zoAxNle2Q7NhnfesORyC5jUFFIniAJdbCaNM0Kh+dchQ0K2OHgJO7FJAhwlT1dk9iEZQg4Fd0WWv3 LgrsAjFD/JWdfkM9yRUu9rcye7DqLkoBFVIetN3nO47lpFTCZ6pv6g3FPJlY2DneS1ZRetdYtfgSZN Y=
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/24PnER7rFGtvd8IaPCLjt19xYTc>
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: Tue, 15 Aug 2017 00:34:44 -0000
martinthomson commented on this pull request.
I haven't seen a review for #721 yet. I apologize for stacking like this, but #721 is pretty self-contained, so the amount of leakage from that is small. That said, I tried removing it from this changeset and found that a lot of the text is intertwined. I've started stacking PRs differently now, so the reviewing should be easier.
> @@ -1596,7 +1622,7 @@ The RST_STREAM frame is as follows:
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Stream ID (32) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| Error Code (32) |
+| App Protocol Error Code (16) |
Yes, I must have split this from the other PR poorly.
>
Error Code:
: A 32-bit error code which indicates the reason for closing this connection.
+ TRANSPORT_CLOSE uses codes from the space defined in {{error-codes}};
+ APPLICATION_CLOSE uses codes from the application protocol error code space
+ ({{app-error-codes}}).
I considered not doing that, but it seemed more helpful to highlight the distinction here given that I wasn't repeating the format stuff in the description of APPLICATION_CLOSE.
> @@ -2608,11 +2654,10 @@ discarded upon receipt. This avoids potential ambiguity about which STREAM
frames count toward flow control.
Upon receipt of a STOP_SENDING frame on a stream in the "open" or "half-closed
-(remote)" states, an endpoint MUST 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.
+(remote)" states, an endpoint MUST send a RST_STREAM frame. If the STOP_SENDING
Actually, the point here is that the *application* sends the RST_STREAM. The transport can't send RST_STREAM. The transport can't do that without risking putting the application into a bad state. I will change this to make it clearer.
Actually, I'm going to raise this on the list. It seems like STOP_SENDING could be made an application-layer construct and we could avoid that complexity at the transport layer entirely. I'm trying to see how visibility at the transport layer would be of value, but I'm drawing a blank.
>
-The portion of the QUIC error code space allocated for the crypto handshake is
-0xC0000000-0xFFFFFFFF. The following error codes are defined when TLS is used
-for the crypto handshake:
+This document defines error codes from the error code space used in
+{{QUIC-TRANSPORT}}.
The crypto handshake bit is on the very next line. The point of separation is that the codes are consumed even if TLS isn't used.
>
-An endpoint that receives an invalid CONNECTION_CLOSE frame MUST NOT signal the
-existence of the error to its peer.
+An endpoint that chooses not to retransmit packets containing TRANSPORT_CLOSE or
+APPLICATION_CLOSE risks a peer missing the first such packet. The only
I'll remove this sentence, reword the remaining sentence, and merge.
--
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/722#pullrequestreview-56237490
- [quicwg/base-drafts] Split error code space (#722) Martin Thomson
- Re: [quicwg/base-drafts] Split error code space (… Martin Thomson
- Re: [quicwg/base-drafts] Split error code space (… Martin Thomson
- Re: [quicwg/base-drafts] Split error code space (… Martin Thomson
- Re: [quicwg/base-drafts] Split error code space (… Martin Thomson
- Re: [quicwg/base-drafts] Split error code space (… Martin Thomson
- Re: [quicwg/base-drafts] Split error code space (… janaiyengar
- Re: [quicwg/base-drafts] Split error code space (… Martin Thomson
- Re: [quicwg/base-drafts] Split error code space (… Martin Thomson
- Re: [quicwg/base-drafts] Split error code space (… Mark Nottingham
- Re: [quicwg/base-drafts] Split error code space (… Martin Thomson
- Re: [quicwg/base-drafts] Split error code space (… janaiyengar
- Re: [quicwg/base-drafts] Split error code space (… Martin Thomson
- Re: [quicwg/base-drafts] Split error code space (… Martin Thomson
- Re: [quicwg/base-drafts] Split error code space (… Mike Bishop
- Re: [quicwg/base-drafts] Split error code space (… Martin Thomson
- Re: [quicwg/base-drafts] Split error code space (… janaiyengar
- Re: [quicwg/base-drafts] Split error code space (… Martin Thomson
- Re: [quicwg/base-drafts] Split error code space (… Martin Thomson
- Re: [quicwg/base-drafts] Split error code space (… janaiyengar
- Re: [quicwg/base-drafts] Split error code space (… Martin Thomson
- Re: [quicwg/base-drafts] Split error code space (… janaiyengar
- Re: [quicwg/base-drafts] Split error code space (… Martin Thomson
- Re: [quicwg/base-drafts] Split error code space (… Martin Thomson
- Re: [quicwg/base-drafts] Split error code space (… Martin Thomson
- Re: [quicwg/base-drafts] Split error code space (… janaiyengar
- Re: [quicwg/base-drafts] Split error code space (… janaiyengar