From 482e370e05813c1390cd62ad65b76dcb2dcdc856 Mon Sep 17 00:00:00 2001 From: rosstimothy <39066650+rosstimothy@users.noreply.github.com> Date: Fri, 31 Mar 2023 19:56:24 -0400 Subject: [PATCH] Reduce DefaultIdleTimeout to 30s (#23949) An idle timeout of 6m keeps web api connections open too long on Proxies that have any agents which do not have the changes from #22832. Because the http.Server.IdleTimeout is set on all release versions now, even when built with go.19, we experience this issue because we no longer exercise the bug that was fixed in go1.20. --- api/defaults/defaults.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/defaults/defaults.go b/api/defaults/defaults.go index 95f06e3602fd8..c6ee9e7550aec 100644 --- a/api/defaults/defaults.go +++ b/api/defaults/defaults.go @@ -32,7 +32,7 @@ const ( DefaultIOTimeout = 30 * time.Second // DefaultIdleTimeout is a default idle connection timeout. - DefaultIdleTimeout = 360 * time.Second + DefaultIdleTimeout = 30 * time.Second // KeepAliveCountMax is the number of keep-alive messages that can be sent // without receiving a response from the client before the client is