From 829d8a23aff05de7fab5db19264775e41254c10c Mon Sep 17 00:00:00 2001 From: Filip Aleksic Date: Tue, 25 Jan 2022 12:54:06 +0100 Subject: [PATCH] Disable keep alive while shutting down --- app.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.go b/app.go index da40c5f15..e224a76e2 100644 --- a/app.go +++ b/app.go @@ -373,6 +373,8 @@ func (a *theApp) Run() { // TODO: make this timeout configurable ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second) + srv.SetKeepAlivesEnabled(false) + if err := srv.Shutdown(ctx); err != nil { result = multierror.Append(result, err) } -- GitLab