Re: [quicwg/base-drafts] Define terms for application actions (#2857)
Martin Thomson <notifications@github.com> Mon, 05 August 2019 00:09 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 710A912012D for <quic-issues@ietfa.amsl.com>; Sun, 4 Aug 2019 17:09:14 -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 a3RsEPHtQCis for <quic-issues@ietfa.amsl.com>; Sun, 4 Aug 2019 17:09:12 -0700 (PDT)
Received: from out-19.smtp.github.com (out-19.smtp.github.com [192.30.252.202]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8C58E120123 for <quic-issues@ietf.org>; Sun, 4 Aug 2019 17:09:12 -0700 (PDT)
Date: Sun, 04 Aug 2019 17:09:11 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1564963751; bh=DVTuCGsZJoZ0Gi6uGu0WS28dXlpD4lYubLdgaX7qoDc=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:List-ID: List-Archive:List-Post:List-Unsubscribe:From; b=sy/+L81AqJOiSr0IqDYf+eULYowD76+pOlBtTh28UZaZKz1ncxbReKGU7kJk6NOG2 dQOEJKe+6FcBli00pP40sDqDF/rQqg2/hH8mkU8JXyYQ1HWVN/ZxqKIR288NqVi7GX w6OZNRJ3ECX9/SWHnRN53qAASr2RpkDciv4zVRmQ=
From: Martin Thomson <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+AFTOJKYJDJE6GHFNGAWQFDN3KSTCPEVBNHHBXBSRPY@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/263174739@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_5d4773a7725e3_335b3fecb3ecd96890893"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: martinthomson
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/uE2dH561be1gVgbQhIRfpToPv7Q>
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: Mon, 05 Aug 2019 00:09:15 -0000
martinthomson commented on this pull request. > @@ -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. It absolutely needs to know about this because 0-RTT rejection implies the need to start over in some cases. You can't just treat 0-RTT as "lost". > @@ -638,11 +666,14 @@ Note (*1): ## Solicited State Transitions -If an endpoint is no longer interested in the data it is receiving on a stream, -it MAY send a STOP_SENDING frame identifying that stream to prompt closure of -the stream in the opposite direction. This typically indicates that the -receiving application is no longer reading data it receives from the stream, but -it is not a guarantee that incoming data will be ignored. +If an application is no longer interested in the data it is receiving on a +stream, it can abort reading the stream and specify an application error code. + +If the stream is in the "Recv or "Size Known" states, the transport SHOULD +signal this by sending a STOP_SENDING frame identifying that stream to prompt I think that we can lose a few words and make this a little more readable. ```suggestion signal this by sending a STOP_SENDING frame to prompt ``` > +- write data, understanding when stream flow control credit + ({{data-flow-control}}) has successfully been reserved to send the written + data +- end the stream (clean termination), resulting in a STREAM frame + ({{frame-stream}}) with the FIN bit set; and +- reset the stream (abrupt termination), resulting in a RESET_STREAM frame + ({{frame-reset-stream}}), even if the stream was already ended. + +On the receiving part of a stream, application protocols need to be able to: + +- read data +- abort reading of the stream and request closure, possibly resulting in a + STOP_SENDING frame ({{frame-stop-sending}}) + +Applications also need to be informed of state changes on streams, including +when the peer has initiated, reset, or aborted reading on a stream; when new List construction here implies that you can "reset reading on a stream" or that you can observe "initiation of reading on a stream". You probably need to say "when the peer has opened or reset a stream; when a peer aborts reading a stream; when new ..." -- 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#pullrequestreview-263174739
- [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