Skip to content

Commit

Permalink
Merge pull request #393 from dkropachev/dk/enable-tls-tickets-cache
Browse files Browse the repository at this point in the history
tls: enable session ticket cache by default
  • Loading branch information
dkropachev authored Feb 21, 2025
2 parents b631024 + dffa1dc commit e2627ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,8 @@ func setupTLSConfig(sslOpts *SslOptions) (*tls.Config, error) {
if sslOpts.Config == nil {
tlsConfig = &tls.Config{
InsecureSkipVerify: !sslOpts.EnableHostVerification,
// Ticket max size is 16371 bytes, so it can grow up to 16mb max.
ClientSessionCache: tls.NewLRUClientSessionCache(1024),
}
} else {
// use clone to avoid race.
Expand Down

0 comments on commit e2627ca

Please sign in to comment.