mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-23 22:27:38 -05:00
Merge pull request #49 from guilhermebr/master
adding crypto/tls sessioncache
This commit is contained in:
commit
a3b853dd47
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue