reduce to default http server KillTimeout and StopTimeout

This commit is contained in:
Konstantin Lebedev 2022-02-14 21:38:24 +05:00
parent ff666104c4
commit 275e9a4e86

View file

@ -364,8 +364,8 @@ func (v VolumeServerOptions) startClusterHttpService(handler http.Handler) httpd
} }
httpDown := httpdown.HTTP{ httpDown := httpdown.HTTP{
KillTimeout: 5 * time.Minute, KillTimeout: time.Minute,
StopTimeout: 5 * time.Minute, StopTimeout: time.Minute,
CertFile: certFile, CertFile: certFile,
KeyFile: keyFile} KeyFile: keyFile}
clusterHttpServer := httpDown.Serve(&http.Server{Handler: handler}, listener) clusterHttpServer := httpDown.Serve(&http.Server{Handler: handler}, listener)