Browse Source

reverse_proxy: optimize MaxIdleConnsPerHost default (#2809)

master
yzongyue 5 years ago
committed by Matt Holt
parent
commit
fcd8869f51
  1. 1
      modules/caddyhttp/reverseproxy/reverseproxy.go

1
modules/caddyhttp/reverseproxy/reverseproxy.go

@ -93,6 +93,7 @@ func (h *Handler) Provision(ctx caddy.Context) error {
KeepAlive: &KeepAlive{
ProbeInterval: caddy.Duration(30 * time.Second),
IdleConnTimeout: caddy.Duration(2 * time.Minute),
MaxIdleConnsPerHost: 32,
},
DialTimeout: caddy.Duration(10 * time.Second),
}

Loading…
Cancel
Save