mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-06 22:40:31 -05:00
reverse_proxy: optimize MaxIdleConnsPerHost default (#2809)
This commit is contained in:
parent
1e31be8de0
commit
fcd8869f51
1 changed files with 3 additions and 2 deletions
|
@ -93,6 +93,7 @@ func (h *Handler) Provision(ctx caddy.Context) error {
|
||||||
KeepAlive: &KeepAlive{
|
KeepAlive: &KeepAlive{
|
||||||
ProbeInterval: caddy.Duration(30 * time.Second),
|
ProbeInterval: caddy.Duration(30 * time.Second),
|
||||||
IdleConnTimeout: caddy.Duration(2 * time.Minute),
|
IdleConnTimeout: caddy.Duration(2 * time.Minute),
|
||||||
|
MaxIdleConnsPerHost: 32,
|
||||||
},
|
},
|
||||||
DialTimeout: caddy.Duration(10 * time.Second),
|
DialTimeout: caddy.Duration(10 * time.Second),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue