Re: Split error codes in two

Christian Huitema <huitema@huitema.net> Mon, 04 September 2017 20:03 UTC

Return-Path: <huitema@huitema.net>
X-Original-To: quic@ietfa.amsl.com
Delivered-To: quic@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5F00C126BF0 for <quic@ietfa.amsl.com>; Mon, 4 Sep 2017 13:03:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level:
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 7IzRY9TshYgP for <quic@ietfa.amsl.com>; Mon, 4 Sep 2017 13:03:30 -0700 (PDT)
Received: from mx43-out1.antispamcloud.com (mx43-out1.antispamcloud.com [138.201.61.189]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8D835124239 for <quic@ietf.org>; Mon, 4 Sep 2017 13:03:30 -0700 (PDT)
Received: from xsmtp12.mail2web.com ([168.144.250.177]) by mx26.antispamcloud.com with esmtps (TLSv1.2:AES128-SHA:128) (Exim 4.89) (envelope-from <huitema@huitema.net>) id 1doxac-00065T-VM for quic@ietf.org; Mon, 04 Sep 2017 22:03:29 +0200
Received: from [10.5.2.15] (helo=xmail05.myhosting.com) by xsmtp12.mail2web.com with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from <huitema@huitema.net>) id 1doxaX-0001G1-OL for quic@ietf.org; Mon, 04 Sep 2017 16:03:21 -0400
Received: (qmail 27036 invoked from network); 4 Sep 2017 20:03:15 -0000
Received: from unknown (HELO [192.168.1.103]) (Authenticated-user:_huitema@huitema.net@[172.56.42.88]) (envelope-sender <huitema@huitema.net>) by xmail05.myhosting.com (qmail-ldap-1.03) with ESMTPA for <quic@ietf.org>; 4 Sep 2017 20:03:14 -0000
To: quic@ietf.org
References: <CABkgnnWwGAyHzkST9o9ueVmBw3_TpJun=dv2X+HL2snXSZJgew@mail.gmail.com>
From: Christian Huitema <huitema@huitema.net>
Message-ID: <76d443bc-3e05-b91c-2d82-4b42a2e39f67@huitema.net>
Date: Mon, 04 Sep 2017 13:03:11 -0700
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0
MIME-Version: 1.0
In-Reply-To: <CABkgnnWwGAyHzkST9o9ueVmBw3_TpJun=dv2X+HL2snXSZJgew@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Language: en-US
Subject: Re: Split error codes in two
X-Originating-IP: 168.144.250.177
X-SpamExperts-Domain: xsmtpout.mail2web.com
X-SpamExperts-Username: 168.144.250.0/24
Authentication-Results: antispamcloud.com; auth=pass smtp.auth=168.144.250.0/24@xsmtpout.mail2web.com
X-SpamExperts-Outgoing-Class: unsure
X-SpamExperts-Outgoing-Evidence: Combined (0.15)
X-Recommended-Action: accept
X-Filter-ID: PqwsvolAWURa0gwxuN3S5YEa3T7JuZT23fGO2rGt3ZgTCGhDnudOJ80D1c8rffxrus7BTv7Ss8cH d2IQQuvdbtM+m4WpRRDP6YzwkAPgQJbMzHFUa97P3bfY1LzB69ykND46yZLY9QyX+cRXmooQ3hum JwiT+2brWmQlzkLIcXivpIH4ag6BM/+u9ym+BA23I3JrZ/fXFMymk2/Yv7IMGvzLO0shYmHPpSXw 3S8A3AqRkHyVzuSTWH072zVdykCPYOEkjsX7F8KmpUaZQHV+SaoNpL7PRmmTib7l1mO88Em2G5Pj 7iQJEmtNUzH3idZ6uMF2OhyCCCV83x+RZrKIj0QqMGQOSwmEPwP4wBzM77N8GvkYGGDFjg9NrmGY yNnXsSjdYwfRhjHqxQXDsBKLpCbsjdvAic40+cHi4LtB9yDfPQj1kOyxNFg33kI1TaC7CpXSTy88 yKXT59k+LMPEe4PW2FvUI0j8pJmeRPf+1Zqpb0YnYvmU5PphG8LogcC6a8Mrc8quJ4btPpt/2FLu FENuK6ldck0juAg+FVtv+IOo4y6frMgdTo7c9I9ngwHJYd/jKzjiuDYHz/0WYr1rUy6ggDjF/JYa A95R4z1aC/OySQHb3iwsf1ON/gXoJDVrp17vcIhp4/vU15YpEcaF91b7LCVq2nuinYFw/C3rfJ2V 3KD8IdSHBSi9yjOsRb3k8wJfEo0cbb0YLkzPOD/FDLswybukjjR7SZbxkOJ/tGOswfMZlU6KrHdP H7E9FnA1BOfl8hIUxn/cFVzK5dYMjHB/3WCT/ywxqGyDcX7ymo81pn6M7II0pBZMP8Q2yl7HZ8cC 5NCzOtKFVG2OgcPUMeKVse1sVhWabI0/+PN3sILCmP4sL9m2Y1BvIAo6egCemilw+ioChJ5n7tfm eH2kchap9/JGM7LGxIWWH81zEGo=
X-Report-Abuse-To: spam@quarantine5.antispamcloud.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/KD9h6QUP0oe3bYf0oIAFtNvoLOU>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Main mailing list of the IETF QUIC working group <quic.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic>, <mailto:quic-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic/>
List-Post: <mailto:quic@ietf.org>
List-Help: <mailto:quic-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic>, <mailto:quic-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 04 Sep 2017 20:03:32 -0000


On 9/3/2017 9:55 PM, Martin Thomson wrote:
> In doing this, I realized two further things:
>
> 1. STOP_SENDING is a purely application-layer construct, but it's a
> transport-layer frame.  That makes it much harder to manage with this
> change.  Moving it to HTTP makes a lot of sense (to me).
>
>    https://github.com/quicwg/base-drafts/pull/759

Arguably, MAX STREAM DATA is also an application-layer construct. If an
application does not want to receive more bytes on a stream, it could
stop increasing that counter. That would have more or less the same
effect as STOP SENDING, in a passive aggressive way...

>
> 2. We are now nudging 20 error codes (plus the per-frame-type ones).
> 4 billion might be a little more space than we need, so halving the
> number of bits with give error cords seems reasonable:
>
>    https://github.com/quicwg/base-drafts/pull/723
Is that really a priority? I mean, we probably do not really need to
save 2 bytes in error messages.

And then, how do we deal with extensions? Suppose that I define an
experimental version of the protocol that brings both new functionality
and new error codes. What number range shall I use for these extended
error codes?

-- 
Christian Huitema