Re: [quicwg/base-drafts] Keep-alive requirements (#744)

Martin Thomson <notifications@github.com> Wed, 30 August 2017 01:35 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 92DB9132356 for <quic-issues@ietfa.amsl.com>; Tue, 29 Aug 2017 18:35:18 -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_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 X0J1V1Cuerwg for <quic-issues@ietfa.amsl.com>; Tue, 29 Aug 2017 18:35:16 -0700 (PDT)
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 1BFA5126BFD for <quic-issues@ietf.org>; Tue, 29 Aug 2017 18:35:15 -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=MA2CJGCwyxKII1KPLack7xBp7xs=; b=P3WayLEhA8ZOSeUJ RA3xbn/2Oks3seDmLQ8h9V/eQRXzeh8EQilXj6bw0y2USpWPuSjWje/Xte+twmEP sY/i1mGEfVX+ihqgLMSWZpLFTaMhuGNoGc+oFAezkl731U4xloxaRvRDn0LUMWQQ JnaVAmI9SbJJAyjAtpZDut2fPwU=
Received: by filter0515p1las1.sendgrid.net with SMTP id filter0515p1las1-1952-59A61651-26 2017-08-30 01:35:13.950614582 +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 ismtpd0004p1iad1.sendgrid.net (SG) with ESMTP id cDsjTmQdQvuGOumRr6Faig for <quic-issues@ietf.org>; Wed, 30 Aug 2017 01:35:13.653 +0000 (UTC)
Date: Wed, 30 Aug 2017 01:35:14 +0000
From: Martin Thomson <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+0166e4ab8552309e92185cd308f9eb161649b3d7398acdbf92cf0000000115bdd85192a169ce0f02be56@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/pull/744/review/57946121@github.com>
In-Reply-To: <quicwg/base-drafts/pull/744@github.com>
References: <quicwg/base-drafts/pull/744@github.com>
Subject: Re: [quicwg/base-drafts] Keep-alive requirements (#744)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_59a616516ede8_238f3fe153e37c30316cb"; 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
X-SG-EID: l64QuQ2uJCcEyUykJbxN122A6QRmEpucztpreh3Pak0rNaVCvwFHXzw3tmbGzYTZObR0kXyUMJkAIn 52TmdVnWccI/fOhBNjxsQmDGTYO003AQzGsGHOULidqRLAKpakmszYIlZh3h3lScqPdDF1tWtLGFtu iLy6kHJYDCYuFtbh64EfgchDN+HYYi8oG3ttH9TtgcqyDK2CrHTnHz6y3mmZH/6rEg/tBrZMJp+3hC s=
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/pZBuhWmYK7URcGT73NXzIDcvS2I>
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: Wed, 30 Aug 2017 01:35:19 -0000

martinthomson commented on this pull request.

Ugh, some old replies that got held up.  Damn this slow 'net.

> @@ -841,6 +841,22 @@ A server MUST treat a MAX_PUSH_ID frame payload that is other than 4 octets in
 length as a connection error of type HTTP_MALFORMED_MAX_PUSH_ID.
 
 
+# Connection Management
+
+QUIC connections are persistent.  All of the considerations in Section 9.1 of
+{{?RFC7540}} apply to the management of QUIC connections.
+
+HTTP clients are expected to use QUIC PING frames to keep connections open.
+Servers SHOULD NOT use PING frames to keep a connection open.  A client SHOULD
+NOT use PING frames for this purpose unless there are no responses outstanding

Yes, operator error on my part.

> @@ -841,6 +841,22 @@ A server MUST treat a MAX_PUSH_ID frame payload that is other than 4 octets in
 length as a connection error of type HTTP_MALFORMED_MAX_PUSH_ID.
 
 
+# Connection Management
+
+QUIC connections are persistent.  All of the considerations in Section 9.1 of
+{{?RFC7540}} apply to the management of QUIC connections.
+
+HTTP clients are expected to use QUIC PING frames to keep connections open.
+Servers SHOULD NOT use PING frames to keep a connection open.  A client SHOULD
+NOT use PING frames for this purpose unless there are no responses outstanding
+for requests or server pushes.  If the client is not expecting a response from
+the server, allowing an idle connection to time out (based on the idle_timeout
+transport parameter) is preferred over expending effort maintaining a connection
+that might not be needed.  A gateway MAY use PING to maintain connections in
+anticipation of need rather than incur the latency cost of connection
+establishment to servers.

0-RTT has the risk of replay.  You can't just use 0-RTT.  Having warm connections available at a gateway seems like a reasonable strategy to avoid problems with setup.  Also, you might want to avoid slow start in the case that you need to shove multiple requests down that pipe when many new clients arrive with 0-RTT requests.

-- 
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/744#pullrequestreview-57946121