diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/server.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/server.go b/server/server.go index d6f20abc2..2416f21db 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 |