mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-25 11:05:45 +00:00
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>
This commit is contained in:
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…
Reference in New Issue
Block a user