Re: [quicwg/base-drafts] Define terms for application actions (#2857)
Mike Bishop <notifications@github.com> Fri, 02 August 2019 17:38 UTC
Return-Path: <noreply@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 02D3812075B for <quic-issues@ietfa.amsl.com>; Fri, 2 Aug 2019 10:38:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8
X-Spam-Level:
X-Spam-Status: No, score=-8 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, 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 1r7NhHgwFi-V for <quic-issues@ietfa.amsl.com>; Fri, 2 Aug 2019 10:38:03 -0700 (PDT)
Received: from out-6.smtp.github.com (out-6.smtp.github.com [192.30.252.197]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CB749120757 for <quic-issues@ietf.org>; Fri, 2 Aug 2019 10:38:02 -0700 (PDT)
Date: Fri, 02 Aug 2019 10:38:01 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1564767482; bh=7JxotKFYj5wuQZ1KTlAAfKmcBLsWu1PjBMXD/mrYCWA=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:List-ID: List-Archive:List-Post:List-Unsubscribe:From; b=uwGGN5Z+P4Fx7W0yqp4dKXIMiJTsmecALlZfvtvvo4zqSeyT4PJKahAzKpi3Q0vtT jrJbC+Wb8CVdRECn+VBU72pfdlFFqg0NIJuVtMLeP2P0tqxTPCS2wmozogyQdsszou 9fL/kMsMCTH8kQQVFttli9fi05TLPR5l3eW0qb4o=
From: Mike Bishop <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+AFTOJK42KOJVPEM4VCSYTCN3KGTXTEVBNHHBXBSRPY@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/pull/2857/review/262651353@github.com>
In-Reply-To: <quicwg/base-drafts/pull/2857@github.com>
References: <quicwg/base-drafts/pull/2857@github.com>
Subject: Re: [quicwg/base-drafts] Define terms for application actions (#2857)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_5d4474f9e86a1_7efe3fd8e5ecd968262212"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: MikeBishop
X-GitHub-Recipient: quic-issues
X-GitHub-Reason: subscribed
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address: quic-issues@ietf.org
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/yL2yi2mfATEblXjtEnFnzzPFWNw>
X-BeenThere: quic-issues@ietf.org
X-Mailman-Version: 2.1.29
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: Fri, 02 Aug 2019 17:38:05 -0000
MikeBishop commented on this pull request. > @@ -505,11 +505,11 @@ this limit are not guaranteed to be accepted. ### Request Cancellation and Rejection {#request-cancellation} -Clients can cancel requests by aborting the stream (QUIC RESET_STREAM and/or -STOP_SENDING frames, as appropriate) with an error code of -HTTP_REQUEST_CANCELLED ({{http-error-codes}}). When the client cancels a -response, it indicates that this response is no longer of interest. -Implementations SHOULD cancel requests by aborting both directions of a stream. +Clients can cancel requests by resetting the request stream with an error code +of HTTP_REQUEST_CANCELLED ({{http-error-codes}}). When the client aborts +reading a response, it indicates that this response is no longer of interest. +Implementations SHOULD cancel requests by terminating both directions of a The terms "clean termination" and "abrupt termination" are given as synonyms for "end the stream" and "reset the stream" in -transport line 361. I should specify the termination type here. > -least one unidirectional stream for the HTTP control stream plus the number of -unidirectional streams required by mandatory extensions (such as QPACK) by -setting an appropriate value for the QUIC transport parameter -`initial_max_uni_streams` (three being the minimum value required for the base -HTTP/3 protocol and QPACK), and SHOULD use a value of 1,024 or greater for the -QUIC transport parameter `initial_max_stream_data_uni`. +Endpoints that excessively restrict the number or flow control window of these +streams will increase the chance that the remote peer reaches the limit early +and becomes blocked. In particular, implementations should consider that remote +peers may wish to exercise reserved stream behavior ({{stream-grease}}) with +some of the unidirectional streams they are permitted to use. To avoid blocking, +both clients and servers MUST allow the peer to create at least one +unidirectional stream for the HTTP control stream plus the number of +unidirectional streams required by mandatory extensions (three being the minimum +number required for the base HTTP/3 protocol and QPACK), and SHOULD provide at +least 1,024 bytes of flow control credit to each stream. Good point. I personally think they're equivalent, but I believe our consensus was to require it to be in the transport parameters. I added a phrase to clarify this. > @@ -345,6 +345,31 @@ the relative priority of streams. When deciding which streams to dedicate resources to, the implementation SHOULD use the information provided by the application. +## Required Operations on Streams + +There are certain operations which an application MUST be able to perform when +interacting with QUIC streams. This document does not specify an API, but +any implementation of this version of QUIC MUST expose the ability to perform +the operations described in this section on a QUIC stream. + +On the sending part of a stream: + +- Attempt to write data, understanding when stream flow control credit + ({{data-flow-control}}) has successfully been reserved to send the written + data or possibly discovering that the stream has been closed because the peer Already created this list, but didn't adjust this bullet point. Fixed. > @@ -1101,6 +1132,41 @@ suggested structure: --> +## Required Operations on Connections + +There are certain operations which an application MUST be able to perform when +interacting with the QUIC transport. This document does not specify an API, but +any implementation of this version of QUIC MUST expose the ability to perform +the operations described in this section on a QUIC connection. + +When implementing the client role, applications need to be able to: + +- open a connection, which begins the exchange described in {{handshake}}; +- enable 0-RTT; and +- be informed when 0-RTT has been accepted or rejected by a server. The client needs to know because rejection resets the state of all streams; the client has to know whether to start over. -- 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/2857#discussion_r304095084
- [quicwg/base-drafts] Define terms for application… Mike Bishop
- Re: [quicwg/base-drafts] Define terms for applica… Mike Bishop
- Re: [quicwg/base-drafts] Define terms for applica… Mike Bishop
- Re: [quicwg/base-drafts] Define terms for applica… Mike Bishop
- Re: [quicwg/base-drafts] Define terms for applica… Martin Thomson
- Re: [quicwg/base-drafts] Define terms for applica… MikkelFJ
- Re: [quicwg/base-drafts] Define terms for applica… Mike Bishop
- Re: [quicwg/base-drafts] Define terms for applica… Mike Bishop
- Re: [quicwg/base-drafts] Define terms for applica… Mike Bishop
- Re: [quicwg/base-drafts] Define terms for applica… Mike Bishop
- Re: [quicwg/base-drafts] Define terms for applica… Lucas Pardue
- Re: [quicwg/base-drafts] Define terms for applica… Dmitri Tikhonov
- Re: [quicwg/base-drafts] Define terms for applica… ianswett
- Re: [quicwg/base-drafts] Define terms for applica… Mike Bishop
- Re: [quicwg/base-drafts] Define terms for applica… Mike Bishop
- Re: [quicwg/base-drafts] Define terms for applica… Mike Bishop
- Re: [quicwg/base-drafts] Define terms for applica… Mike Bishop
- Re: [quicwg/base-drafts] Define terms for applica… Mike Bishop
- Re: [quicwg/base-drafts] Define terms for applica… Martin Thomson
- Re: [quicwg/base-drafts] Define terms for applica… ianswett
- Re: [quicwg/base-drafts] Define terms for applica… ianswett
- Re: [quicwg/base-drafts] Define terms for applica… ianswett
- Re: [quicwg/base-drafts] Define terms for applica… ianswett
- Re: [quicwg/base-drafts] Define terms for applica… Mike Bishop
- Re: [quicwg/base-drafts] Define terms for applica… Martin Thomson
- Re: [quicwg/base-drafts] Define terms for applica… MikkelFJ
- Re: [quicwg/base-drafts] Define terms for applica… Mike Bishop
- Re: [quicwg/base-drafts] Define terms for applica… Mike Bishop
- Re: [quicwg/base-drafts] Define terms for applica… Mike Bishop
- Re: [quicwg/base-drafts] Define terms for applica… Mike Bishop
- Re: [quicwg/base-drafts] Define terms for applica… MikkelFJ
- Re: [quicwg/base-drafts] Define terms for applica… MikkelFJ
- Re: [quicwg/base-drafts] Define terms for applica… MikkelFJ
- Re: [quicwg/base-drafts] Define terms for applica… Mike Bishop