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

This commit is contained in:
张勋 2017-08-08 14:27:33 +08:00 committed by Miek Gieben
parent 0bc1ff7408
commit a04fe81bd8

View file

@ -121,6 +121,7 @@ func NewHTTPSTransport(cc *tls.Config) *http.Transport {
}).Dial,
TLSHandshakeTimeout: 10 * time.Second,
TLSClientConfig: cc,
MaxIdleConnsPerHost: 25,
}
return tr