diff --git a/serverutil/http.go b/serverutil/http.go index 9a72a78437a01d624b3ab61dd318e5484875e00d..b1d4b94968edc27e116836d981440d24ebeae60e 100644 --- a/serverutil/http.go +++ b/serverutil/http.go @@ -47,12 +47,15 @@ func Serve(h http.Handler, serverConfig *ServerConfig, addr string) (err error) } } + // These are not meant to be external-facing servers, so we + // can be generous with the timeouts to keep the number of + // reconnections low. srv := &http.Server{ Addr: addr, Handler: instrumentHandler(h), ReadTimeout: 30 * time.Second, WriteTimeout: 30 * time.Second, - IdleTimeout: 60 * time.Second, + IdleTimeout: 600 * time.Second, TLSConfig: tlsConfig, }