From 075fbb2ab9ddb5971ed105f7ea0e84bf3cce3e93 Mon Sep 17 00:00:00 2001 From: Benjamin Saunders Date: Fri, 22 May 2020 15:27:40 -0700 Subject: [PATCH] Don't reset PTO backoff when our address need not be validated --- quinn-proto/src/connection/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quinn-proto/src/connection/mod.rs b/quinn-proto/src/connection/mod.rs index 615660f43..8c740ac39 100644 --- a/quinn-proto/src/connection/mod.rs +++ b/quinn-proto/src/connection/mod.rs @@ -967,7 +967,9 @@ where // Must be called before crypto/pto_count are clobbered self.detect_lost_packets(now, space); - self.pto_count = 0; + if self.peer_not_awaiting_address_validation() { + self.pto_count = 0; + } // Explicit congestion notification if self.path.sending_ecn {