Re: [quicwg/base-drafts] Include handshake anti-deadlock logic in pseudocode (#2281)

ianswett <notifications@github.com> Tue, 15 January 2019 20:53 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 6BC461294D0 for <quic-issues@ietfa.amsl.com>; Tue, 15 Jan 2019 12:53:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.553
X-Spam-Level:
X-Spam-Status: No, score=-7.553 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-4.553, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_NONE=-0.0001, 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 zUHv5ayQ3P3s for <quic-issues@ietfa.amsl.com>; Tue, 15 Jan 2019 12:53:11 -0800 (PST)
Received: from o3.sgmail.github.com (o3.sgmail.github.com [192.254.112.98]) (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 E176D1295D8 for <quic-issues@ietf.org>; Tue, 15 Jan 2019 12:53:10 -0800 (PST)
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=cmmWvY4uqBN2uTjCV3hbQ60qUWY=; b=k3iI1kDqs5eWOa7M UZtMlt+nu6JsUdiSVdsOeqys9X+7tq1SM8a/KDhNY+Jq736GeljFbvF77R8FGUO8 kd2bzOPs5JTDMyvWmkAtfoOamMvdQ4gIW6gslxLQB94PN3RwLgaJJ4WirWCmCiWu bjf3wt17icgCyIiAEg3WJdOksgs=
Received: by filter1717p1mdw1.sendgrid.net with SMTP id filter1717p1mdw1-17115-5C3E4835-18 2019-01-15 20:53:09.634143407 +0000 UTC m=+74036.713388179
Received: from github-lowworker-0b1e58d.cp1-iad.github.net (unknown [192.30.252.43]) by ismtpd0012p1iad2.sendgrid.net (SG) with ESMTP id b9jNcu_HRl-4MEqrSxW8fg for <quic-issues@ietf.org>; Tue, 15 Jan 2019 20:53:09.647 +0000 (UTC)
Received: from github.com (localhost [127.0.0.1]) by github-lowworker-0b1e58d.cp1-iad.github.net (Postfix) with ESMTP id 88C763E00FB for <quic-issues@ietf.org>; Tue, 15 Jan 2019 12:53:09 -0800 (PST)
Date: Tue, 15 Jan 2019 20:53:09 +0000
From: ianswett <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+0166e4ab65370f8a77542bc1f72efe4e94d7ec05e6fd158c92cf0000000118560a3592a169ce178befb2@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/pull/2281/review/192855977@github.com>
In-Reply-To: <quicwg/base-drafts/pull/2281@github.com>
References: <quicwg/base-drafts/pull/2281@github.com>
Subject: Re: [quicwg/base-drafts] Include handshake anti-deadlock logic in pseudocode (#2281)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_5c3e483587528_739a3fd3d40d45c0319115"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: ianswett
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: l64QuQ2uJCcEyUykJbxN122A6QRmEpucztpreh3Pak2cLJj1sMC9EGwnilEUzKlM+C7gP+vYtTkDLd lw7sLq8eXP/SrtN0FDh8qw732qV6zEUvSa4rGV+OE9m91CjPX3Lm8+8PiAypC5wFvE+Hp22mQCcErF M4s8Zs8JzWJoXAS4eKA+T1nHIfYyxigV1n5hgMaUIC6j/sR2504HJAyWxDhnuYerP9fRkDRc7xq+wH s=
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/pcdq1V3d6Kh7Emm9WOHYL4PR3Lk>
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: Tue, 15 Jan 2019 20:53:14 -0000

ianswett commented on this pull request.

Thanks, I think this is heading in the right direction.  I'd like it to be cleaner, but this isn't a clean mechanism.

> @@ -699,6 +703,9 @@ Pseudocode for OnAckReceived and UpdateRtt follow:
     largest_acked_packet = max(largest_acked_packet,
                                ack.largest_acked)
 
+    if (from Handshake packet):

```suggestion
    if (ack from Handshake packet):
```

> @@ -699,6 +703,9 @@ Pseudocode for OnAckReceived and UpdateRtt follow:
     largest_acked_packet = max(largest_acked_packet,
                                ack.largest_acked)
 
+    if (from Handshake packet):

Can you add a short comment like "Once the client receives an ACK in a Handshake packet, it knows the server considers its address verified."?

> @@ -823,6 +831,12 @@ Pseudocode for OnLossDetectionTimeout follows:
        // Crypto retransmission timeout.
        RetransmitUnackedCryptoData()
        crypto_count++
+     else if (unverified_client):
+       if (handshake keys available)
+         SendOnePacket()
+       else:
+         SendPaddedPacket()

```suggestion
         SendOnePaddedPacket()
```

-- 
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/2281#pullrequestreview-192855977