diff --git a/cmd/root.go b/cmd/root.go index 5e43577..a2aceea 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -11,7 +11,7 @@ import ( ) const ( - Version string = "0.51.2" + Version string = "0.51.3" ) var ( diff --git a/cmd/web.go b/cmd/web.go index 2ad9126..2b9b864 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -1089,8 +1089,9 @@ func ServePage(args []string) error { srv := &http.Server{ Addr: net.JoinHostPort(bind, strconv.FormatInt(int64(port), 10)), Handler: mux, + IdleTimeout: 10 * time.Minute, ReadTimeout: 5 * time.Second, - WriteTimeout: 10 * time.Second, + WriteTimeout: 5 * time.Minute, } err = srv.ListenAndServe()