diff --git a/server/server.go b/server/server.go index d6f20abc..2416f21d 100644 --- a/server/server.go +++ b/server/server.go @@ -132,6 +132,9 @@ func ListenAndServeTLSWithSNI(srv *http.Server, tlsConfigs []TLSConfig) error { } config.BuildNameToCertificate() + // Add a session cache LRU algorithm with default capacity (64) + config.ClientSessionCache = tls.NewLRUClientSessionCache(0) + conn, err := net.Listen("tcp", addr) if err != nil { return err