Re: RST_STREAM for send-only stream

Mikkel Fahnøe Jørgensen <mikkelfj@gmail.com> Tue, 09 January 2018 19:46 UTC

Return-Path: <mikkelfj@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 C2DD7129C6C for <quic@ietfa.amsl.com>; Tue, 9 Jan 2018 11:46:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.697
X-Spam-Level:
X-Spam-Status: No, score=-2.697 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001, URIBL_BLOCKED=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 zBozVBa4qiMb for <quic@ietfa.amsl.com>; Tue, 9 Jan 2018 11:46:32 -0800 (PST)
Received: from mail-it0-x233.google.com (mail-it0-x233.google.com [IPv6:2607:f8b0:4001:c0b::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 4B444120725 for <quic@ietf.org>; Tue, 9 Jan 2018 11:46:32 -0800 (PST)
Received: by mail-it0-x233.google.com with SMTP id p124so5994770ite.1 for <quic@ietf.org>; Tue, 09 Jan 2018 11:46:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:in-reply-to:references:mime-version:date:message-id:subject:to :cc; bh=yMBEcJM3Pe2CPpcfr8xxpuVKnwJEENXlYTSxZT7YXrk=; b=HC6SmrgpY14ctH84N2+Y9PjNINvUPo6U9+ot70V9b3haAsuNy6txcy6NdggeZlioXp e2k+VcJpk5pmzaIXTjZh/EdCjv9+AaV9tUvzOISnl5+6/kZ93dxcG73gEDUe/fgOxU/6 Z7w4GhSOSNYIO36HbPtun9Qrh/pnQZORgcCAL9oQ+OfwfET2PLB+iYmW42wbwD2FCvP0 tPztuN3MBU22qUoW/ulieTMpghqrqjyUAOppCg0b+HCr5lg5Tt+biv5MwD7sx7+d3gFG wGpfXzUIFUZcWSm5juYVLQF2BB4Lg0qp6/no3yuPVkm1xLpexhdMdaukxUP9jG5iT9Gq d+eA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=yMBEcJM3Pe2CPpcfr8xxpuVKnwJEENXlYTSxZT7YXrk=; b=bhS77rJlNGvxLjaVf9jRfFMk/mBQCUp4z8uJwu6vrx1PGUA7f4FG9ubBpyVbWuUbZ2 ZMEqzDmucGOF6bSOTw4RCuRbYc6sypsaiGWWydQjB0c3TlWGekpNZzX6u0kTDdTTZFSA DnmzkKUoOtuEDZufxjpPBONGwQxCHh1/lp4hiZH6plwhPvg4d4xVDJJX5yI4awcme5OD 87oJZRnUlvo130LHt5dzX+PxXsni85fkfP8ooh+zVo8eJeZ0kG+4lya1buEC63ut3ilt i6Nje4ZSH3yavYKwVNxXVvOmCqGkRDQ+RrUscZFlh1eQB/HotYueXljwAcREGuRjgliI pgPA==
X-Gm-Message-State: AKGB3mKMlwEqCj0Ylf9cZgY4ptlmDIFQKFaa8ChXe3sG9q8spGT/RlLZ ZeVrN60aqnVk9ElLpuIH9kKU7X1f80ltVZ6+Wfc=
X-Google-Smtp-Source: ACJfBosn++SJsCtv88uNT7m25Fy8KxCaa+KBH7HhW2l9IejeoBUAh0DVh0n0R+4xTDl3/QYFnaMeRW/ciUS2Acp06FA=
X-Received: by 10.36.20.73 with SMTP id 70mr16328477itg.55.1515527191678; Tue, 09 Jan 2018 11:46:31 -0800 (PST)
Received: from 1058052472880 named unknown by gmailapi.google.com with HTTPREST; Tue, 9 Jan 2018 14:46:30 -0500
From: =?UTF-8?Q?Mikkel_Fahn=C3=B8e_J=C3=B8rgensen?= <mikkelfj@gmail.com>
In-Reply-To: <CAKcm_gPBiR2QHeHVoMR-UGFaqictBXFsxZYJBdT0MZ8dAo1ygQ@mail.gmail.com>
References: <CAM4esxRdrumkRrPueUgz1zJUVB6Y=JX2PxZfvPn+fNHGjdUDgQ@mail.gmail.com> <MWHPR08MB2432D80D2167110601413BFEDA100@MWHPR08MB2432.namprd08.prod.outlook.com> <CAKcm_gPBiR2QHeHVoMR-UGFaqictBXFsxZYJBdT0MZ8dAo1ygQ@mail.gmail.com>
X-Mailer: Airmail (420)
MIME-Version: 1.0
Date: Tue, 9 Jan 2018 14:46:30 -0500
Message-ID: <CAN1APdehsj2NCJdrL_HBiZSfXPhZt5_Gssz9FETxtEyAcE573w@mail.gmail.com>
Subject: Re: RST_STREAM for send-only stream
To: Mike Bishop <mbishop@evequefou.be>, Ian Swett <ianswett@google.com>
Cc: Martin Duke <martin.h.duke@gmail.com>, IETF QUIC WG <quic@ietf.org>
Content-Type: multipart/alternative; boundary="001a1143ea2ce8520205625d2b54"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/1TdEfZUwSGB_Lj8KJ787KjkNdUo>
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: Tue, 09 Jan 2018 19:46:35 -0000

Fatal error, otherwise uni-directional streams starts to have to understand
and behave and like bi-directional streams.

On 9 January 2018 at 20.11.40, Ian Swett (ianswett@google.com) wrote:

I would think it's a fatal error, but if we allow it, 0 would be the only
valid offset, correct?

Agreed, it should be documented.

On Tue, Jan 9, 2018 at 1:59 PM, Mike Bishop <mbishop@evequefou.be> wrote:

> I could reasonably see it going either way.  If you conceive of
> unidirectional streams as starting with one direction already closed,
> re-closing the closed side is a no-op.  If you conceive of the reverse
> direction simply not existing, then the frame is invalid.
>
>
>
> Either way, we should decide and write it down.  I have no strong
> preference.
>
>
>
> *From:* QUIC [mailto:quic-bounces@ietf.org] *On Behalf Of* Martin Duke
> *Sent:* Tuesday, January 9, 2018 8:59 AM
> *To:* IETF QUIC WG <quic@ietf.org>
> *Subject:* RST_STREAM for send-only stream
>
>
>
> Is it a fatal error if I receive a RST_STREAM for my send-only stream? Is
> it PROTOCOL_VIOLATION or STREAM_STATE_ERROR? connection-level or
> stream-level? or should I drop the packet? drop the frame?
>