Significantly increased timeouts so clear_cache doesn't error out

This commit is contained in:
Seednode 2023-06-03 19:49:58 -05:00
parent d2368884b7
commit 9c668ea04d
2 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,7 @@ import (
)
const (
Version string = "0.51.2"
Version string = "0.51.3"
)
var (

View File

@ -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()