diff --git a/app.go b/app.go index ddafb0bf254e1fb7cd458e56e7603e0b514e0754..9d696a8f7b65844df6698b1bd89d66dfecc245d2 100644 --- a/app.go +++ b/app.go @@ -366,6 +366,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) }