Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
reverse_proxy: optimize MaxIdleConnsPerHost default (#2809)
yzongyue committed
Oct 12, 2019 at 13:57 UTC
fcd8869f51b78f260e3c3aed53d7d87c2051ffe9
1 file changed
+3
-2
modules/caddyhttp/reverseproxy/reverseproxy.go
+3
-2
@@ -91,8 +91,9 @@ func (h *Handler) Provision(ctx caddy.Context) error {
91
if h.Transport == nil {
92
t := &HTTPTransport{
93
KeepAlive: &KeepAlive{
94
- ProbeInterval: caddy.Duration(30 * time.Second),
95
- IdleConnTimeout: caddy.Duration(2 * time.Minute),
94
+ ProbeInterval: caddy.Duration(30 * time.Second),
95
+ IdleConnTimeout: caddy.Duration(2 * time.Minute),
96
+ MaxIdleConnsPerHost: 32,
97
},
98
DialTimeout: caddy.Duration(10 * time.Second),
99
}