Skip to content

Commit

Permalink
Reduce DefaultIdleTimeout to 30s (#23949)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rosstimothy authored Mar 31, 2023
1 parent 218eea6 commit 482e370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/defaults/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 482e370

Please sign in to comment.