Commit a04fe81b authored by 张勋's avatar 张勋 Committed by Miek Gieben

Change default MaxIdleConnsPerHost of Etcd client’s http.Transport (#853)

parent 0bc1ff74
...@@ -121,6 +121,7 @@ func NewHTTPSTransport(cc *tls.Config) *http.Transport { ...@@ -121,6 +121,7 @@ func NewHTTPSTransport(cc *tls.Config) *http.Transport {
}).Dial, }).Dial,
TLSHandshakeTimeout: 10 * time.Second, TLSHandshakeTimeout: 10 * time.Second,
TLSClientConfig: cc, TLSClientConfig: cc,
MaxIdleConnsPerHost: 25,
} }
return tr return tr
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment