Re: Split error codes in two

Martin Thomson <martin.thomson@gmail.com> Fri, 08 September 2017 02:50 UTC

Return-Path: <martin.thomson@gmail.com>
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 D1BE813309D for <quic@ietfa.amsl.com>; Thu, 7 Sep 2017 19:50:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 wCoS1ZRShak9 for <quic@ietfa.amsl.com>; Thu, 7 Sep 2017 19:50:35 -0700 (PDT)
Received: from mail-oi0-x233.google.com (mail-oi0-x233.google.com [IPv6:2607:f8b0:4003:c06::233]) (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 78D3C13309C for <quic@ietf.org>; Thu, 7 Sep 2017 19:50:35 -0700 (PDT)
Received: by mail-oi0-x233.google.com with SMTP id r20so8178301oie.0 for <quic@ietf.org>; Thu, 07 Sep 2017 19:50:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ZCdp8YAI4GhtdikYxvvHPj2slBHIpwy4Ky085PYMOtc=; b=MmgDwEDwh+KZZ50eFRf0s51q2YOnkQ+OtqmvBruzxXVgLoDZCUncGUxRtZX/xq4vsU b/ZEOSp+GF5XmFyoOpmFEqIGUwAtoEkdbKwCOG+ceke6lE45TAIQhEvTuvbKuv/45WrF HLtNypbhiKelmsf0qqkBFVP4xJLJHZxfLn1glyRbV3J1EurTgPPhjOv4xrrJJsx8N+f8 rznzPBwZkHlp1sKUjRa6AGtZbNT8ljz4xUO+Rdnuk2kHxmRBECZiN+jTTafD0L3IcDay WLNq7pS3pJ7iuwMidThWZlInmhhypYvJvDAsF0VneMCkputjfiYAUentArMViTAWpStV QtuA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ZCdp8YAI4GhtdikYxvvHPj2slBHIpwy4Ky085PYMOtc=; b=WP6BOODe+gZIdScxwtiSyHDa2SsY1I/5AsGofPwK18S0pmD5hBGhtRmBOdQyx7BFkv AvUbhYOt6ksylhNdI5u6gti/xpNKv0zss9YjtRP5BcBc9k/Zh3nRhEt8eVW4B5EkyJXS s0DEdfc17wSW6QGH4RsCAGpfLosrnyVLm4WMWPh3M0YZT+skW8+iv1usPV912O9SWTfm WWBiRZiP52fChhmyo0zGBMMT+hz3wkkicwnCr9R6keE5cAqBCwgiyNPQbDZcjZUzrgU2 N2FkQfmTckQz5H23beZ7pLks6fXyDa9mTGAXWmmkBaVKKc78ELucxnJ3vS1QzCFHmj5a tDZw==
X-Gm-Message-State: AHPjjUgOfKqnAbUsc34XpdcKR1iG4eWXJ3uzQMoNwg0NM2eOnjw55NWW S0SvC8BN5sHSJ7/YnFN35GmQO6qfmg==
X-Google-Smtp-Source: AOwi7QBnEg5QRefasYdINgbjGaO5t4FAal6IMqvpofltBXjlA0vDh7KNc6no9GXqfqSlGGbhUJ16kml0/ygeqn5C55M=
X-Received: by 10.202.87.213 with SMTP id l204mr1511612oib.38.1504839034803; Thu, 07 Sep 2017 19:50:34 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.157.14.77 with HTTP; Thu, 7 Sep 2017 19:50:34 -0700 (PDT)
In-Reply-To: <CAGD1bZbnpCxjdaEV_m_5XWEjtjmdxYTGh2VBoS8AgZdhxfsDhw@mail.gmail.com>
References: <CABkgnnWwGAyHzkST9o9ueVmBw3_TpJun=dv2X+HL2snXSZJgew@mail.gmail.com> <CAAZdMafBWFWtC7A60P1CMm_6nUnbW+_Tx_7re1bAo7Vx2kLdcA@mail.gmail.com> <CABkgnnWphw3k=f3==2y3AhexQCj9Py50SLSEH06nN3MN0SCerQ@mail.gmail.com> <CAAZdMacHC1HKhXMR4G9CKUOmYyQMsQBab+tampP-PG6n_jJZoA@mail.gmail.com> <CACdeXiLS7W8cJbnT=orHkcd9reH=8QqhOzxWnUEpWZmfcdvd2g@mail.gmail.com> <CAGD1bZa-h0ZVh7kUYQtG3r93eH6TqRXnQ6YXAcscCrCQHk8LeA@mail.gmail.com> <CABkgnnXMFUP_c+2r6YeJouJXanHd8tFcqDKgU=C9UF0stPcXOw@mail.gmail.com> <CAGD1bZZZG9L0_d7Tmo8vfdAx+=LU+yi97N42vKFGo82K16Zycw@mail.gmail.com> <05505C10-8737-4C58-BC91-E401D2659AF0@in-panik.de> <MWHPR21MB0141F305CCE2B686F09549F887970@MWHPR21MB0141.namprd21.prod.outlook.com> <CAGD1bZY5xo5Krn=U3SBVUCPU4x2UAOcv2AnvzaRac9qJGM9KBg@mail.gmail.com> <DM5PR15MB14497BB2F1971C5965882875B6940@DM5PR15MB1449.namprd15.prod.outlook.com> <CAGD1bZbnpCxjdaEV_m_5XWEjtjmdxYTGh2VBoS8AgZdhxfsDhw@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Fri, 08 Sep 2017 12:50:34 +1000
Message-ID: <CABkgnnWRy17vuFRGhpvLBCKte3WeCdGa1M1feOBygQv+-AB2+A@mail.gmail.com>
Subject: Re: Split error codes in two
To: Jana Iyengar <jri@google.com>
Cc: Subodh Iyengar <subodh@fb.com>, Mike Bishop <Michael.Bishop@microsoft.com>, "Philipp S. Tiesel" <phils@in-panik.de>, QUIC WG <quic@ietf.org>, Nick Harper <nharper@google.com>, Victor Vasiliev <vasilvv@google.com>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/QMcan8GTk-T7ytFs9v5f0EXBTjA>
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: Fri, 08 Sep 2017 02:50:37 -0000

On Fri, Sep 8, 2017 at 9:42 AM, Jana Iyengar <jri@google.com> wrote:
> I don't think it makes sense to design an app protocol that doesn't send a
> RST in response to a RST.

I've been told not to invoke this particular demon, but you just
invoked the Unidirectional streams problem.  I think that we get there
because of this meme that says that data in the one direction is
somehow necessarily bound to data in the other direction.  That's an
entirely constructed notion.  A useful construct at times, certainly,
but that's not the point here.

So I disagree.  There are many protocols in which you send messages
(== streams) in one direction but not another.  One of the ways you
get into a unidirectional state in the current draft is to end one
side.  A FIN is only one way to do that, a unidirectional RST can be
faster and even superior in other ways.  The HTTP use case clearly
illustrates that.

Also, as Igor observes, we don't require a reciprocal RST_STREAM in
the current draft.