From 192a7a56a3440cbae62f5a9615ea19cc6021b787 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Mon, 31 Oct 2022 11:21:25 +0000 Subject: [PATCH] fix(httpproxy): lower shutdown wait from 2s to 100ms --- internal/httpproxy/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/httpproxy/server.go b/internal/httpproxy/server.go index 7f000d84..0912b3bd 100644 --- a/internal/httpproxy/server.go +++ b/internal/httpproxy/server.go @@ -39,7 +39,7 @@ func (s *Server) Run(ctx context.Context, errorCh chan<- error) { } go func() { <-ctx.Done() - const shutdownGraceDuration = 2 * time.Second + const shutdownGraceDuration = 100 * time.Millisecond shutdownCtx, cancel := context.WithTimeout(context.Background(), shutdownGraceDuration) defer cancel() if err := server.Shutdown(shutdownCtx); err != nil {