Skip to content

Commit

Permalink
Fix: error message using correct keepalive config value
Browse files Browse the repository at this point in the history
`kpTimeoutLeft` is calculated from `kp.Timeout`, but the error message implies it's based on `kp.Time`.
  • Loading branch information
BatmanAoD authored Mar 14, 2024
1 parent 4f43d2e commit 5b3db47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/transport/http2_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5b3db47

Please sign in to comment.