Skip to content

Commit 8da910c

Browse files
committed
remove http2, increase max conn per host limit
1 parent 3bc9c0f commit 8da910c

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

proxy/utils.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,9 @@ func createTransportForSelfSignedCert(certPEM []byte, maxOpenConnections int) (*
3737
RootCAs: certPool,
3838
MinVersion: tls.VersionTLS12,
3939
},
40-
MaxConnsPerHost: maxOpenConnections,
41-
//ForceAttemptHTTP2: true,
40+
MaxConnsPerHost: maxOpenConnections * 2,
4241
}
4342

44-
// Is required due to TLSCLientConfig field specified
45-
//err := http2.ConfigureTransport(tr)
46-
//if err != nil {
47-
// return nil, err
48-
//}
49-
//
5043
return tr, nil
5144
}
5245

0 commit comments

Comments
 (0)