Re: [quicwg/base-drafts] Push ID (#701)

Mike Bishop <notifications@github.com> Fri, 28 July 2017 16:49 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 65063131C2A for <quic-issues@ietfa.amsl.com>; Fri, 28 Jul 2017 09:49:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.021
X-Spam-Level:
X-Spam-Status: No, score=-2.021 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-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 TZ5I6BFQyybw for <quic-issues@ietfa.amsl.com>; Fri, 28 Jul 2017 09:49:53 -0700 (PDT)
Received: from o1.sgmail.github.com (o1.sgmail.github.com [192.254.114.176]) (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 ACA78131CB3 for <quic-issues@ietf.org>; Fri, 28 Jul 2017 09:49:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=github.com; h=from:reply-to:to:cc:in-reply-to:references:subject:mime-version:content-type:content-transfer-encoding:list-id:list-archive:list-post:list-unsubscribe; s=s20150108; bh=JMCf3BIAQoccjrYSUyNxL7SQg7A=; b=gnAc5zCUmafS06hH O8VjBijUe/w8SLiekmCrfNyYhKVJw+kK/Ni5ifPYblHsTkX8vjJyfTH4sgg8Z7/T bcsXfsz2ZUnCkUMSe+R1DglHrxLMAqme9Kl8nC3VpI4st/MJBXfCeU5rmsWagN5X No77G/fbMkH0Cl0o66e8DwSB8jw=
Received: by filter0565p1mdw1.sendgrid.net with SMTP id filter0565p1mdw1-21419-597B6B1A-2B 2017-07-28 16:49:30.356799266 +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 ismtpd0030p1mdw1.sendgrid.net (SG) with ESMTP id jdfdxlXSQwGMVH0_S8o-xA for <quic-issues@ietf.org>; Fri, 28 Jul 2017 16:49:30.291 +0000 (UTC)
Date: Fri, 28 Jul 2017 16:49:30 +0000
From: Mike Bishop <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+0166e4abf22bd9e7616dbf0625c3d92623c50f85f1cee36992cf0000000115932d1992a169ce0ea8b4d3@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/pull/701/review/52978340@github.com>
In-Reply-To: <quicwg/base-drafts/pull/701@github.com>
References: <quicwg/base-drafts/pull/701@github.com>
Subject: Re: [quicwg/base-drafts] Push ID (#701)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_597b6b19dafd5_aa53fa691703c2c7677b"; 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
X-SG-EID: l64QuQ2uJCcEyUykJbxN122A6QRmEpucztpreh3Pak0oNIQ2NPFrNlnF8Zzef7iqgwBxu1h0uxlO73 Yroi8iSPyQ/+UFb1nx7KNNHFva/FJkfnByBbugLoCvWD603QTIPgxwgjwbHF/HPLUZoqybs8NCyifL VfJn7nwqI8AtXA1WPd9mKiFOUsbIgX8U1BDbISbclnl6LyG9Z9oO9pxz9BjCCUm7eZXCGrPmeFotIb I=
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/vmwZ42U6FhGbCtumQZ6zpaMsTnQ>
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: Fri, 28 Jul 2017 16:49:56 -0000

MikeBishop approved this pull request.

All my feedback is editorial -- the core of the change looks good.

>  
-The server push response is conveyed in the same way as a non-server-push
-response, with response headers and (if present) trailers carried by HEADERS
-frames, and response body (if any) carried by DATA frames.
+After the push stream header, a push contains a response ({{request-response}}),
+with response headers and (if present) trailers carried by HEADERS frames sent
+on the control stream, and response body (if any) carried by DATA frames.

Not on the control stream.

>  
 The flags defined are:
 
+  PUSH_PRIORITIZED (0x04):
+  : Indicates that the Prioritized Stream is a server push rather than a
+    request.  If set, this flag indicates that the Prioritized Stream identifies
+    a response stream and the Promise Index field is present.
+
+  PUSH_DEPENDENT (0x02):
+  : Indicates a dependency on a pushed request.  If set, this flag indicates
+    that the Dependent Stream identifies a response stream and that the

Saying that it "identifies a response stream" in both these places feels a little odd.  If it's the stream ID, then just say it's the stream ID and you don't even need the flags.  If it's the Push ID, use the term here for clarity.

> @@ -430,22 +473,87 @@ The flags defined are:
 
 The PRIORITY frame payload has the following fields:
 
-  Prioritized Stream:
-  : A 32-bit stream identifier for the request stream whose priority is being
-    updated.
+  Prioritized Request:
+  : A 32-bit identifier for a request.  This contains the stream ID of a request
+    stream when the PUSH_PRIORITIZED flag is clear, or a Push ID when the PUSH

PUSH => PUSH_PRIORITIZED?

>  
   Weight:
   : An unsigned 8-bit integer representing a priority weight for the stream (see
     {{!RFC7540}}, Section 5.3). Add one to the value to obtain a weight between
     1 and 256.
 
-A PRIORITY frame MUST have a payload length of nine octets.  A PRIORITY frame
-of any other length MUST be treated as a connection error of type
-HTTP_MALFORMED_PRIORITY.
+A PRIORITY frame identifies a request to priotize, and a request upon which that
+request is dependent.  A request is identified by the stream ID of a request
+when the corresponding PUSH_PRIORITIZED or PUSH_DEPENDENT flag is not set.
+Setting the PUSH or PUSH_DEPENDENT flag causes the frame to identify a
+PUSH_PROMISE using a Push ID (see {{frame-push-promise}} for details).
+
+A PRIORITY frame MAY identify no request by using a stream ID of 0; as in

Since there are two references in a PRIORITY frame, and setting one of them to zero is prohibited by your other pull request, perhaps be more specific than "identify" here.

> +{{!RFC7540}}, this makes the request dependent on the root of the dependency
+tree.
+
+A PRIORITY frame that does not reference a request MUST be treated as a
+HTTP_MALFORMED_PRIORITY error, unless it references stream ID 0.  A PRIORITY
+that sets a PUSH_PRIORITIZED or PUSH_DEPENDENT flag, but then references a
+non-existent Push ID MUST be treated as a HTTP_MALFORMED_PRIORITY error.
+
+The length of a PRIORITY frame is 9 octets.  A PRIORITY frame with any other
+length MUST be treated as a connection error of type HTTP_MALFORMED_PRIORITY.
+
+
+### CANCEL_REQUEST {#frame-cancel-request}
+
+The CANCEL_REQUEST frame (type=0x3) is used to request cancellation of a request
+prior to the response stream being created.  This frame can be used to cancel

Given that there aren't (currently 😉) separate request/response streams, this basically can only be used to cancel a push.  Let's call it CANCEL_PUSH for now and not talk about requests in this section.

> +prior to the response stream being created.  This frame can be used to cancel
+server push requests that are initiated with a PUSH_PROMISE.
+
+The CANCEL_REQUEST frame identifies a server push request by Push ID (see
+{{frame-push-promise}}).
+
+When a server receives this frame, it aborts sending the response for the
+identified server push.  If the server has not yet started to send the server
+push, it can use the receipt of a CANCEL_REQUEST frame to avoid opening a
+stream.  If the push stream has been opened by the server, the server SHOULD
+sent a QUIC RST_STREAM frame on those streams and cease transmission of the
+response.
+
+A server can send this frame to indicate that it won't be sending a response
+prior to creation of a push stream.  Once the push stream has been created, a
+RST_STREAM with a CANCELLED code can be used instead.

"can" feels like it needs an RFC2119 WORD, but I don't know which.

> +The CANCEL_REQUEST frame identifies a server push request by Push ID (see
+{{frame-push-promise}}).
+
+When a server receives this frame, it aborts sending the response for the
+identified server push.  If the server has not yet started to send the server
+push, it can use the receipt of a CANCEL_REQUEST frame to avoid opening a
+stream.  If the push stream has been opened by the server, the server SHOULD
+sent a QUIC RST_STREAM frame on those streams and cease transmission of the
+response.
+
+A server can send this frame to indicate that it won't be sending a response
+prior to creation of a push stream.  Once the push stream has been created, a
+RST_STREAM with a CANCELLED code can be used instead.
+
+A CANCEL_REQUEST frame is sent on the control stream.  Sending a CANCEL_REQUEST
+frame on a stream other than the control stream MUST be treated as a

"stream error of type X" avoids the argument of whether to do a/an before HTTP.

> +RST_STREAM with a CANCELLED code can be used instead.
+
+A CANCEL_REQUEST frame is sent on the control stream.  Sending a CANCEL_REQUEST
+frame on a stream other than the control stream MUST be treated as a
+HTTP_WRONG_STREAM error.
+
+The CANCEL_REQUEST frame has no defined flags.
+
+~~~~~~~~~~  drawing
+    0                   1                   2                   3
+    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+   |                         Push ID (32)                          |
+   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+~~~~~~~~~~
+{: #fig-cancel-request title="CANCEL_REQUEST frame payload"}

I've been trying to avoid drawings of things that have only a single field and call that single thing the payload of the frame.

> @@ -577,12 +686,35 @@ server to client, as in HTTP/2.  It defines no flags.
 
 The payload consists of:
 
-  Promised Stream ID:
-  : A 32-bit Stream ID indicating the QUIC stream on which the response will be
-    sent
-
-  Payload:
-  : HPACK-compressed request headers for the promised response.
+Push ID:
+: A 32-bit identifier for the server push request.  This identifier is used in
+  push stream header ({{server-push}}), CANCEL_REQUEST frames

"in the" or "in ... headers".  "In ... header" sounds odd.

-- 
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/701#pullrequestreview-52978340