File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
go/libraries/doltcore/env Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -94,11 +94,19 @@ func (p GRPCDialProvider) GetGRPCDialParams(config grpcendpoint.Config) (dbfacto
9494 tc := credentials .NewTLS (config .TLSConfig )
9595 opts = append (opts , grpc .WithTransportCredentials (tc ))
9696
97- transport := * defaultTransport
98- transport .TLSClientConfig = config .TLSConfig
99- transport .ForceAttemptHTTP2 = true
97+ transport := & http.Transport {
98+ Proxy : http .ProxyFromEnvironment ,
99+ DialContext : defaultDialer .DialContext ,
100+ ForceAttemptHTTP2 : true ,
101+ MaxIdleConns : 1024 ,
102+ MaxIdleConnsPerHost : 256 ,
103+ IdleConnTimeout : 90 * time .Second ,
104+ TLSClientConfig : config .TLSConfig ,
105+ TLSHandshakeTimeout : 10 * time .Second ,
106+ ExpectContinueTimeout : 1 * time .Second ,
107+ }
100108 httpfetcher = & http.Client {
101- Transport : & transport ,
109+ Transport : transport ,
102110 }
103111 } else if config .Insecure {
104112 opts = append (opts , grpc .WithInsecure ())
You can’t perform that action at this time.
0 commit comments