diff --git a/internal/transport/http2_client.go b/internal/transport/http2_client.go index fe5e6d3d..8bb56d2d 100644 --- a/internal/transport/http2_client.go +++ b/internal/transport/http2_client.go @@ -1332,6 +1332,7 @@ func (t *http2Client) keepalive() { timer.Reset(t.kp.Time) continue } + infof("transport: closing client transport due to idleness.") t.Close() return case <-t.ctx.Done(): diff --git a/internal/transport/http2_server.go b/internal/transport/http2_server.go index 5154fca0..beeb2ed3 100644 --- a/internal/transport/http2_server.go +++ b/internal/transport/http2_server.go @@ -965,6 +965,7 @@ func (t *http2Server) keepalive() { select { case <-maxAge.C: // Close the connection after grace period. + infof("transport: closing server transport due to maximum connection age.") t.Close() // Resetting the timer so that the clean-up doesn't deadlock. maxAge.Reset(infinity) @@ -978,6 +979,7 @@ func (t *http2Server) keepalive() { continue } if pingSent { + infof("transport: closing server transport due to idleness.") t.Close() // Resetting the timer so that the clean-up doesn't deadlock. keepalive.Reset(infinity)