From 7403d8e9a83ad69b9ab21bf9f9889e46692298d1 Mon Sep 17 00:00:00 2001 From: Anton Tolchanov Date: Fri, 12 Jul 2024 17:11:19 +0100 Subject: [PATCH] logtail: close idle HTTP connections on shutdown Fixes tailscale/corp#21609 Co-authored-by: Maisem Ali Signed-off-by: Anton Tolchanov --- logtail/logtail.go | 1 + 1 file changed, 1 insertion(+) diff --git a/logtail/logtail.go b/logtail/logtail.go index 9eaa32a94..9df164273 100644 --- a/logtail/logtail.go +++ b/logtail/logtail.go @@ -266,6 +266,7 @@ func (l *Logger) Shutdown(ctx context.Context) error { case <-l.shutdownDone: } close(done) + l.httpc.CloseIdleConnections() }() l.shutdownStartMu.Lock()