Add small client TLS PSK cache (#14039)

This commit is contained in:
Klaus Post
2022-01-06 11:34:02 -08:00
committed by GitHub
parent 0d3ae3810f
commit 3d66d053c7
5 changed files with 20 additions and 10 deletions

View File

@@ -417,7 +417,8 @@ func getUpdateTransport(timeout time.Duration) http.RoundTripper {
TLSHandshakeTimeout: timeout,
ExpectContinueTimeout: timeout,
TLSClientConfig: &tls.Config{
RootCAs: globalRootCAs,
RootCAs: globalRootCAs,
ClientSessionCache: tls.NewLRUClientSessionCache(tlsClientSessionCacheSize),
},
DisableCompression: true,
}