2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-22 21:05:10 +00:00

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,
}).DialContext,
MaxIdleConns: 100,
MaxIdleConnsPerHost: 100,
IdleConnTimeout: 90 * time.Second,
TLSHandshakeTimeout: 10 * time.Second,
ExpectContinueTimeout: 1 * time.Second,