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 {