diff --git a/session.go b/session.go index 4cc70238..7c68f65c 100644 --- a/session.go +++ b/session.go @@ -738,7 +738,7 @@ func (s *session) nextKeepAliveTime() time.Time { if !s.config.KeepAlive || s.keepAlivePingSent || !s.firstAckElicitingPacketAfterIdleSentTime.IsZero() { return time.Time{} } - return s.lastPacketReceivedTime.Add(s.keepAliveInterval / 2) + return s.lastPacketReceivedTime.Add(s.keepAliveInterval) } func (s *session) maybeResetTimer() {