mirror of
https://github.com/caddyserver/caddy.git
synced 2025-07-07 18:24:53 -04:00
adding crypto/tls sessioncache
This commit is contained in:
parent
2dbd14b6dc
commit
da6a097dcc
@ -132,6 +132,9 @@ func ListenAndServeTLSWithSNI(srv *http.Server, tlsConfigs []TLSConfig) error {
|
|||||||
}
|
}
|
||||||
config.BuildNameToCertificate()
|
config.BuildNameToCertificate()
|
||||||
|
|
||||||
|
// Add a session cache LRU algorithm with default capacity (64)
|
||||||
|
config.ClientSessionCache = tls.NewLRUClientSessionCache(0)
|
||||||
|
|
||||||
conn, err := net.Listen("tcp", addr)
|
conn, err := net.Listen("tcp", addr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user