aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorGravatar Erik Dubbelboer <erik@dubbelboer.com> 2022-08-28 10:13:03 +0200
committerGravatar Erik Dubbelboer <erik@dubbelboer.com> 2022-08-28 10:13:03 +0200
commit79ccfff72b24c5087ba254c39cbfd579a0d7b149 (patch)
treecc77b14e9f35f0848ec211bd797fb35899a3ad81 /client.go
parentFix "use of closed network connection" error check (diff)
downloadfasthttp-79ccfff72b24c5087ba254c39cbfd579a0d7b149.tar.gz
fasthttp-79ccfff72b24c5087ba254c39cbfd579a0d7b149.tar.bz2
fasthttp-79ccfff72b24c5087ba254c39cbfd579a0d7b149.zip
Don't use tls ClientSessionCache
net/http doesn't use it either. Some servers have issues with this preventing fasthttp from working: https://github.com/valyala/fasthttp/issues/1364 https://github.com/valyala/fasthttp/issues/1296 https://github.com/valyala/fasthttp/issues/1335 https://github.com/valyala/fasthttp/issues/984 Also removed code that benchmarks crypto/tls as that has nothing to do with fasthttp.
Diffstat (limited to 'client.go')
-rw-r--r--client.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/client.go b/client.go
index a45b8eb..0ded492 100644
--- a/client.go
+++ b/client.go
@@ -1844,10 +1844,6 @@ func newClientTLSConfig(c *tls.Config, addr string) *tls.Config {
c = c.Clone()
}
- if c.ClientSessionCache == nil {
- c.ClientSessionCache = tls.NewLRUClientSessionCache(0)
- }
-
if len(c.ServerName) == 0 {
serverName := tlsServerName(addr)
if serverName == "*" {