From bd3d3881f5b4754f0a85a785c0bae3a39796b80b Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Tue, 28 Apr 2026 22:37:43 +0000 Subject: [PATCH] Increase server shutdown timeout We shouldn't see this unless we fail to get everything closed down. --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 672ffca1..da84aff7 100644 --- a/main.go +++ b/main.go @@ -170,11 +170,11 @@ func main() { os.Stderr.Sync() platform.EventShutdown() - shutdownCtx, shutdownCancel := context.WithTimeout(context.Background(), 5*time.Second) + shutdownCtx, shutdownCancel := context.WithTimeout(context.Background(), 30*time.Second) defer shutdownCancel() if err := server.Shutdown(shutdownCtx); err != nil { - log.Warn().Err(err).Msg("Error on HTTP server shutdown") + log.Error().Err(err).Msg("Server didn't shutdown cleanly") } cancel()