diff options
author | Erik Dubbelboer <erik@dubbelboer.com> | 2022-08-28 10:13:03 +0200 |
---|---|---|
committer | Erik Dubbelboer <erik@dubbelboer.com> | 2022-08-28 10:13:03 +0200 |
commit | 79ccfff72b24c5087ba254c39cbfd579a0d7b149 (patch) | |
tree | cc77b14e9f35f0848ec211bd797fb35899a3ad81 /client.go | |
parent | Fix "use of closed network connection" error check (diff) | |
download | fasthttp-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.go | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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 == "*" { |