[quicwg/base-drafts] Is zero a valid stream-ID in Transport Parameters? (#1023)
Christian Huitema <notifications@github.com> Mon, 18 December 2017 01:01 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 6D5111270B4 for <quic-issues@ietfa.amsl.com>; Sun, 17 Dec 2017 17:01:05 -0800 (PST)
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_IMAGE_ONLY_32=0.001, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-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 rXDbQ9OxIyzN for <quic-issues@ietfa.amsl.com>; Sun, 17 Dec 2017 17:01:03 -0800 (PST)
Received: from o7.sgmail.github.com (o7.sgmail.github.com [167.89.101.198]) (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 769F61200C5 for <quic-issues@ietf.org>; Sun, 17 Dec 2017 17:01:03 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=github.com; h=from:reply-to:to:cc:subject:mime-version:content-type:content-transfer-encoding:list-id:list-archive:list-post:list-unsubscribe; s=s20150108; bh=jqJ0YHoACA2VLEPzT93Y3DMGqeY=; b=SD/rcpM9XPBxcoxw si96iAUM9l6aPeQ9IyYp+V3ac1EVq3WKC8zzscEgLeVKi5DnXVCTcRNPOvri6RKt IeceUkIy2MCzvioJLnL5pj8G6VkjO/DnwnZ7EyK65gdAZFaepMEFCIruWc76gIWX ICRTnbhJJIlwffDVlCh1YODxM3U=
Received: by filter0367p1iad2.sendgrid.net with SMTP id filter0367p1iad2-13965-5A37134E-26 2017-12-18 01:01:02.564684362 +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 ismtpd0013p1iad2.sendgrid.net (SG) with ESMTP id NrzsAsFiQBW6KzMN15O00A for <quic-issues@ietf.org>; Mon, 18 Dec 2017 01:01:02.693 +0000 (UTC)
Date: Mon, 18 Dec 2017 01:01:02 +0000
From: Christian Huitema <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+0166e4ab202626258f7d7ac566da01b84e02132f23b7a38f92cf00000001164ed54e92a169ce10da444d@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/issues/1023@github.com>
Subject: [quicwg/base-drafts] Is zero a valid stream-ID in Transport Parameters? (#1023)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_5a37134e6b11a_1db153faf2b016f341194451"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: huitema
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: l64QuQ2uJCcEyUykJbxN122A6QRmEpucztpreh3Pak37PRsLX9RK020Prq7JXG8cGw5NoWKV0/OP3W BaBX5yCh/WnfeEGld9cogWU0+2nB8um04UnyWkErZ0BnvM9SBoAGyghlFcY2eqYdzqyH5nEapTfHD3 lQL1ZVWgtmWJ3YzsT85hIskq64EvTZdDV5WH1FPzvrG8ec8wws/Rh67B5oBpAEnbhNeLIykWPMAw+h g=
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/rmXPrxwIx7KQc8msSmwOfCUswXw>
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, 18 Dec 2017 01:01:05 -0000
We found this issue in interop testing. One implementation would send transport parameters with max bidir ID and max unidir ID set to zero. The other implementation applied strictly was is in the spec, and rejected the connection. The spec says: ~~~ initial_max_stream_id_bidi (0x0002): The initial maximum stream ID parameter contains the initial maximum stream number the peer may initiate for bidirectional streams, encoded as an unsigned 32-bit integer. This value MUST be a valid bidirectional stream ID for a peer-initiated stream (that is, the two least significant bits are set to 0 by a server and to 1 by a client). If an invalid value is provided, the recipient MUST generate a connection error of type TRANSPORT_PARAMETER_ERROR. Setting this parameter is equivalent to sending a MAX_STREAM_ID (Section 8.8) immediately after completing the handshake. The maximum bidirectional stream ID is set to 0 if this parameter is absent, preventing the creation of new bidirectional streams until a MAX_STREAM_ID frame is sent. Note that a default value of 0 does not prevent the cryptographic handshake stream (that is, stream 0) from being used. ~~~ If we interpret this strictly, 0 is illegal -- the way to encode 0 is simply to not provide the parameter. Should 0 actually be accepted? -- 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/issues/1023
- [quicwg/base-drafts] Is zero a valid stream-ID in… Christian Huitema
- Re: [quicwg/base-drafts] Is zero a valid stream-I… Nick Banks
- Re: [quicwg/base-drafts] Is zero a valid stream-I… Christian Huitema
- Re: [quicwg/base-drafts] Is zero a valid stream-I… martinduke
- Re: [quicwg/base-drafts] Is zero a valid stream-I… Christian Huitema
- Re: [quicwg/base-drafts] Is zero a valid stream-I… Martin Thomson
- Re: [quicwg/base-drafts] Is zero a valid stream-I… Christian Huitema
- Re: [quicwg/base-drafts] Is zero a valid stream-I… martinduke
- Re: [quicwg/base-drafts] Is zero a valid stream-I… janaiyengar
- Re: [quicwg/base-drafts] Is zero a valid stream-I… martinduke
- Re: [quicwg/base-drafts] Is zero a valid stream-I… Mike Bishop
- Re: [quicwg/base-drafts] Is zero a valid stream-I… Mike Bishop
- Re: [quicwg/base-drafts] Is zero a valid stream-I… MikkelFJ
- Re: [quicwg/base-drafts] Is zero a valid stream-I… janaiyengar
- Re: [quicwg/base-drafts] Is zero a valid stream-I… Martin Thomson