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 {