From 0a1b73ae1d4a6991fcaf5a06ab6da74466529e93 Mon Sep 17 00:00:00 2001 From: Sean DuBois Date: Thu, 11 Jul 2024 22:15:42 -0400 Subject: [PATCH] Respect disableRetransmitBackoff 48d67487d9 only enabled it in sending, not finish --- handshaker.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/handshaker.go b/handshaker.go index 4e0f1ad9..ce3be24c 100644 --- a/handshaker.go +++ b/handshaker.go @@ -358,8 +358,11 @@ func (s *handshakeFSM) finish(ctx context.Context, c flightConn) (handshakeState return handshakeFinished, nil } <-retransmitTimer.C + // RFC 4347 4.2.4.1 - s.retransmitInterval *= 2 + if !s.cfg.disableRetransmitBackoff { + s.retransmitInterval *= 2 + } if s.retransmitInterval > time.Second*60 { s.retransmitInterval = time.Second * 60 }