Actually use a cache if tlsDisableSessionTickets is not set
This commit is contained in:
parent
8bebb50d49
commit
e3ad6b1c0e
|
@ -101,6 +101,9 @@ func (xTransport *XTransport) rebuildTransport() {
|
|||
tlsClientConfig := tls.Config{
|
||||
SessionTicketsDisabled: xTransport.tlsDisableSessionTickets,
|
||||
}
|
||||
if !xTransport.tlsDisableSessionTickets {
|
||||
tlsClientConfig.ClientSessionCache = tls.NewLRUClientSessionCache(10)
|
||||
}
|
||||
if xTransport.tlsCipherSuite != nil {
|
||||
tlsClientConfig.PreferServerCipherSuites = false
|
||||
tlsClientConfig.CipherSuites = xTransport.tlsCipherSuite
|
||||
|
|
Loading…
Reference in New Issue