From 526094d2dad38b78b8d5d2c7e13a7e24d1bef138 Mon Sep 17 00:00:00 2001 From: Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> Date: Mon, 14 Feb 2022 21:42:27 +0500 Subject: [PATCH] StopTimeout 30 sec --- weed/command/volume.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/command/volume.go b/weed/command/volume.go index 3a81bce18..20935bf16 100644 --- a/weed/command/volume.go +++ b/weed/command/volume.go @@ -365,7 +365,7 @@ func (v VolumeServerOptions) startClusterHttpService(handler http.Handler) httpd httpDown := httpdown.HTTP{ KillTimeout: time.Minute, - StopTimeout: time.Minute, + StopTimeout: 30 * time.Second, CertFile: certFile, KeyFile: keyFile} clusterHttpServer := httpDown.Serve(&http.Server{Handler: handler}, listener)