mirror of
https://github.com/restic/restic.git
synced 2025-08-11 11:17:47 +00:00
Allow HTTP/2
This commit is contained in:
@@ -70,6 +70,7 @@ func Transport(opts TransportOptions) (http.RoundTripper, error) {
|
|||||||
KeepAlive: 30 * time.Second,
|
KeepAlive: 30 * time.Second,
|
||||||
DualStack: true,
|
DualStack: true,
|
||||||
}).DialContext,
|
}).DialContext,
|
||||||
|
ForceAttemptHTTP2: true,
|
||||||
MaxIdleConns: 100,
|
MaxIdleConns: 100,
|
||||||
MaxIdleConnsPerHost: 100,
|
MaxIdleConnsPerHost: 100,
|
||||||
IdleConnTimeout: 90 * time.Second,
|
IdleConnTimeout: 90 * time.Second,
|
||||||
|
Reference in New Issue
Block a user