From 27f507cbee96b98d5c8f2eda36e6cb4615399924 Mon Sep 17 00:00:00 2001 From: "simon.mittag" Date: Sat, 9 Apr 2022 06:09:12 +1000 Subject: [PATCH] shorter default timeouts --- config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.go b/config.go index 1825d345..f35fab2c 100644 --- a/config.go +++ b/config.go @@ -309,10 +309,10 @@ func (config Config) setDefaultUpstreamParams() *Config { config.Connection.Upstream.SocketTimeoutSeconds = 3 } if config.Connection.Upstream.ReadTimeoutSeconds == 0 { - config.Connection.Upstream.ReadTimeoutSeconds = 120 + config.Connection.Upstream.ReadTimeoutSeconds = 10 } if config.Connection.Upstream.IdleTimeoutSeconds == 0 { - config.Connection.Upstream.IdleTimeoutSeconds = 120 + config.Connection.Upstream.IdleTimeoutSeconds = 5 } if config.Connection.Upstream.PoolSize == 0 { config.Connection.Upstream.PoolSize = 32768