From 9c668ea04dd5e485856294c512afcf6b810b3c2a Mon Sep 17 00:00:00 2001 From: Seednode Date: Sat, 3 Jun 2023 19:49:58 -0500 Subject: [PATCH] Significantly increased timeouts so clear_cache doesn't error out --- cmd/root.go | 2 +- cmd/web.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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()