From 72d4a043db48bb8196fbf60b99f9d59ef827bf8b Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 22 Mar 2025 14:20:07 +0800 Subject: Configurable timeout --- config.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config.go') diff --git a/config.go b/config.go index 5382bbe..3721fd6 100644 --- a/config.go +++ b/config.go @@ -21,6 +21,9 @@ var config struct { Addr string `scfg:"addr"` CookieExpiry int `scfg:"cookie_expiry"` Root string `scfg:"root"` + ReadTimeout uint `scfg:"read_timeout"` + WriteTimeout uint `scfg:"write_timeout"` + IdleTimeout uint `scfg:"idle_timeout"` } `scfg:"http"` Hooks struct { Socket string `scfg:"socket"` -- cgit v1.2.3