Skip to content

Commit

Permalink
Use TLS session cache up to 1024 entries (#365)
Browse files Browse the repository at this point in the history
This should accelerate establishing of new S3 connections

Co-authored-by: Anis Eleuch <[email protected]>
  • Loading branch information
vadmeste and Anis Eleuch authored Feb 4, 2025
1 parent 374f7c4 commit 37d3f6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ func clientTransport(ctx *cli.Context) http.RoundTripper {
// Can't use TLSv1.1 because of RC4 cipher usage
MinVersion: tls.VersionTLS12,
InsecureSkipVerify: ctx.Bool("insecure"),
ClientSessionCache: tls.NewLRUClientSessionCache(1024), // up to 1024 nodes
}

// Because we create a custom TLSClientConfig, we have to opt-in to HTTP/2.
Expand Down

0 comments on commit 37d3f6f

Please sign in to comment.