From 5b3db4740b60e3805490c76d6dd3bd2d4dc69062 Mon Sep 17 00:00:00 2001 From: Kyle J Strand Date: Wed, 13 Mar 2024 20:32:07 -0600 Subject: [PATCH] Fix: error message using correct keepalive config value `kpTimeoutLeft` is calculated from `kp.Timeout`, but the error message implies it's based on `kp.Time`. --- internal/transport/http2_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/transport/http2_server.go b/internal/transport/http2_server.go index b13113c3e33b..7ad4fcc95024 100644 --- a/internal/transport/http2_server.go +++ b/internal/transport/http2_server.go @@ -1198,7 +1198,7 @@ func (t *http2Server) keepalive() { continue } if outstandingPing && kpTimeoutLeft <= 0 { - t.Close(fmt.Errorf("keepalive ping not acked within timeout %s", t.kp.Time)) + t.Close(fmt.Errorf("keepalive ping not acked within timeout %s", t.kp.Timeout)) return } if !outstandingPing {