logtail: close idle HTTP connections on shutdown

Fixes tailscale/corp#21609

Co-authored-by: Maisem Ali <maisem@tailscale.com>
Signed-off-by: Anton Tolchanov <anton@tailscale.com>
pull/12799/head
Anton Tolchanov 4 months ago committed by Anton Tolchanov
parent f0b9d3f477
commit 7403d8e9a8

@ -266,6 +266,7 @@ func (l *Logger) Shutdown(ctx context.Context) error {
case <-l.shutdownDone:
}
close(done)
l.httpc.CloseIdleConnections()
}()
l.shutdownStartMu.Lock()

Loading…
Cancel
Save