Re: [quicwg/base-drafts] Move GOAWAY from transport to HTTP (#697)

Mike Bishop <notifications@github.com> Thu, 27 July 2017 16:57 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 F3D2F131891 for <quic-issues@ietfa.amsl.com>; Thu, 27 Jul 2017 09:57:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.02
X-Spam-Level:
X-Spam-Status: No, score=-2.02 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_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 880-BlLUCD2v for <quic-issues@ietfa.amsl.com>; Thu, 27 Jul 2017 09:57:43 -0700 (PDT)
Received: from o10.sgmail.github.com (o10.sgmail.github.com [167.89.101.201]) (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 E7CB91316C3 for <quic-issues@ietf.org>; Thu, 27 Jul 2017 09:57:42 -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=vzGj33ZYYjhtNm1+qbfviLElCnM=; b=SFPMTn+MK3IcsX2G yBs2hQuBmD9/0YzV8iEoYsiuhI+T5bI5CVEWVrw8Ja/lW9o/sHg3jjQVt0hFUuAk hQj4c00MAAmRHv2WteF/7b+SFuYs/QqCB8F9n/RQbzeG6RhnZGXoAEHfPoZ29X9Q sEA8Lj3r8lnc3zzGBMsqH9Uy0hc=
Received: by filter0992p1mdw1.sendgrid.net with SMTP id filter0992p1mdw1-12653-597A1B86-4 2017-07-27 16:57:42.074443326 +0000 UTC
Received: from github-smtp2a-ext-cp1-prd.iad.github.net (github-smtp2a-ext-cp1-prd.iad.github.net [192.30.253.16]) by ismtpd0026p1mdw1.sendgrid.net (SG) with ESMTP id tb4Xbq7YTdW-fQp9o89xrw for <quic-issues@ietf.org>; Thu, 27 Jul 2017 16:57:42.004 +0000 (UTC)
Date: Thu, 27 Jul 2017 16:57:42 +0000
From: Mike Bishop <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+0166e4abe16ba809323a976c2fc5e1754fc40eff251f0ff792cf000000011591dd8592a169ce0ea70488@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/pull/697/review/52718304@github.com>
In-Reply-To: <quicwg/base-drafts/pull/697@github.com>
References: <quicwg/base-drafts/pull/697@github.com>
Subject: Re: [quicwg/base-drafts] Move GOAWAY from transport to HTTP (#697)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_597a1b859f171_7bd93fad63be9c2c16168c"; 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: l64QuQ2uJCcEyUykJbxN122A6QRmEpucztpreh3Pak2TEUJ3BYQwurkUPBgSzNCVFTAZXbWX+vnAUa KjyLHVoECe0sOSa6ih+XYFKk+7zNpzewqAyH3OcN/pSBseTderGUPLu/kAVQh063uNMNzfSReF9EuG 2agIFddnnb0rrU+tbc3T8jAIZWyi/tSbgKaFlLUXes5yxdqmflgqvxKgrF6U5sa2gwWYFcKwbUekvt M=
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/1ebt2rHX1gPrV6JEXFRmr_IafYs>
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: Thu, 27 Jul 2017 16:57:45 -0000

MikeBishop commented on this pull request.

I'll incorporate your other comments shortly.

> +identified by a QUIC MAX_STREAM_ID frame.
+
+Once sent, the sender will refuse requests sent on streams initiated by the
+receiver if the stream has an identifier higher than the included last stream
+identifier.  Receivers of a GOAWAY frame MUST NOT send new requests on the
+connection, although a new connection can be established for new streams.
+
+If the receiver of the GOAWAY has sent requests on streams with a higher stream
+identifier than what is indicated in the GOAWAY frame, those streams are not or
+will not be processed.  The receiver of the GOAWAY frame can treat the requests
+as though they had never been sent at all, thereby allowing those requests to be
+retried later on a new connection.  Servers SHOULD treat requests on streams
+above this ID as stream errors of type HTTP_REQUEST_CANCELLED.
+
+Endpoints SHOULD send a GOAWAY frame when the closing of a connection is known
+in advance, even if the window is small, so that the remote peer can know

If the server knows that it's going to close a connection, it should send GOAWAY to warn the client.  Errors that warrant CONNECTION_CLOSE aren't generally known in advance, but if they are, then I agree that this should include them.

> +will not be processed.  The receiver of the GOAWAY frame can treat the requests
+as though they had never been sent at all, thereby allowing those requests to be
+retried later on a new connection.  Servers SHOULD treat requests on streams
+above this ID as stream errors of type HTTP_REQUEST_CANCELLED.
+
+Endpoints SHOULD send a GOAWAY frame when the closing of a connection is known
+in advance, even if the window is small, so that the remote peer can know
+whether a stream has been partially processed or not.  For example, if an HTTP
+client sends a POST at the same time that a server closes a QUIC connection, the
+client cannot know if the server started to process that POST request if the
+server does not send a GOAWAY frame to indicate what streams it might have acted
+on.
+
+For unexpected closures caused by error conditions, transport-level mechanisms
+SHOULD be used.  However, a GOAWAY MAY still be sent to provide additional
+detail to clients.

Fair enough.

> +
+An endpoint MAY send multiple GOAWAY frames if circumstances change. For
+instance, an endpoint that sends GOAWAY without an error code during graceful
+shutdown could subsequently encounter an error condition.  The last stream
+identifier from the last GOAWAY frame received indicates which streams could
+have been acted upon.  Endpoints MUST NOT increase the value they send in the
+last stream identifier, since the peers might already have retried unprocessed
+requests on another connection.
+
+A client that is unable to retry requests loses all requests that are in flight
+when the server closes the connection.  A server that is attempting to
+gracefully shut down a connection SHOULD send an initial GOAWAY frame with the
+last stream identifier set to 2^32-1.  This signals to the client that a
+shutdown is imminent and that initiating further requests is prohibited.  After
+allowing time for any in-flight requests (at least one round-trip time), the
+server MAY send another GOAWAY frame with an updated last stream identifier.

I think 7540 (and therefore this text) is fairly explicit on that point:

> Receivers of a GOAWAY frame MUST NOT send new requests on the connection, although a new connection can be established for new streams.

I agree that the server can't actually enforce that precisely, however, just as it can't in h2.


-- 
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/697#pullrequestreview-52718304