From 955506aa3b0605c864d26099b7e100893ae2cfb8 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Mon, 4 Nov 2024 20:09:10 +0800 Subject: [PATCH] fix arming of keep-alive timer after sending PMTUD probe packets (#4716) --- connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connection.go b/connection.go index 1411a77b..4390f5ca 100644 --- a/connection.go +++ b/connection.go @@ -689,7 +689,7 @@ func (s *connection) nextIdleTimeoutTime() time.Time { // Time when the next keep-alive packet should be sent. // It returns a zero time if no keep-alive should be sent. func (s *connection) nextKeepAliveTime() time.Time { - if s.config.KeepAlivePeriod == 0 || s.keepAlivePingSent || !s.firstAckElicitingPacketAfterIdleSentTime.IsZero() { + if s.config.KeepAlivePeriod == 0 || s.keepAlivePingSent { return time.Time{} } keepAliveInterval := max(s.keepAliveInterval, s.rttStats.PTO(true)*3/2)