Allow many idle connections per host

Closes #985
This commit is contained in:
Alexander Neumann 2017-05-31 19:39:19 +02:00
parent 4dbbc24a44
commit 04b262d8f1

View file

@ -18,6 +18,7 @@ func Transport() http.RoundTripper {
DualStack: true, DualStack: true,
}).DialContext, }).DialContext,
MaxIdleConns: 100, MaxIdleConns: 100,
MaxIdleConnsPerHost: 100,
IdleConnTimeout: 90 * time.Second, IdleConnTimeout: 90 * time.Second,
TLSHandshakeTimeout: 10 * time.Second, TLSHandshakeTimeout: 10 * time.Second,
ExpectContinueTimeout: 1 * time.Second, ExpectContinueTimeout: 1 * time.Second,