summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/server.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2020-11-18 10:57:54 -0700
committerMatthew Holt <mholt@users.noreply.github.com>2020-11-18 10:57:54 -0700
commit1438e4dbc83353166f30978cf471f05e6c0ecd73 (patch)
treec264188a9fbbe28c8bfe2c630c60b0e05e853da5 /modules/caddyhttp/server.go
parent4fc570711e170da2bd1164966d2c47f9dc3d3d6d (diff)
caddyhttp: New idle_timeout default of 5m
Diffstat (limited to 'modules/caddyhttp/server.go')
-rw-r--r--modules/caddyhttp/server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/caddyhttp/server.go b/modules/caddyhttp/server.go
index aaec711..d5be1e1 100644
--- a/modules/caddyhttp/server.go
+++ b/modules/caddyhttp/server.go
@@ -59,8 +59,8 @@ type Server struct {
WriteTimeout caddy.Duration `json:"write_timeout,omitempty"`
// IdleTimeout is the maximum time to wait for the next request
- // when keep-alives are enabled. If zero, ReadTimeout is used.
- // If both are zero, there is no timeout.
+ // when keep-alives are enabled. If zero, a default timeout of
+ // 5m is applied to help avoid resource exhaustion.
IdleTimeout caddy.Duration `json:"idle_timeout,omitempty"`
// MaxHeaderBytes is the maximum size to parse from a client's