From 04b262d8f10ba9eacde041734c08f806c4685e7f Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Wed, 31 May 2017 19:39:19 +0200 Subject: [PATCH] Allow many idle connections per host Closes #985 --- src/restic/backend/http_transport.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/restic/backend/http_transport.go b/src/restic/backend/http_transport.go index 1f65ac7c3..6d7bef7e6 100644 --- a/src/restic/backend/http_transport.go +++ b/src/restic/backend/http_transport.go @@ -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,