From b5ed754725e95bb013deb060337396da1f4141c7 Mon Sep 17 00:00:00 2001 From: Gregory Boddin Date: Tue, 6 Jul 2021 01:37:38 +0200 Subject: [PATCH] Revert "[test] Added a TLS session cache" This reverts commit 5df4ca97b6ee30555b9a4e2454e1b673b8fc5748. --- l9plugin.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/l9plugin.go b/l9plugin.go index 5c82f5b..31dce7c 100644 --- a/l9plugin.go +++ b/l9plugin.go @@ -25,8 +25,6 @@ type ServicePluginInterface interface { type ServicePluginBase struct { } -var TlsSessionCache = tls.NewLRUClientSessionCache(4096*1024) - func (plugin ServicePluginBase) Init() error { return nil } @@ -83,7 +81,7 @@ func (plugin ServicePluginBase) GetHttpClient(ctx context.Context, ip string, po ResponseHeaderTimeout: 2 * time.Second, ExpectContinueTimeout: 2 * time.Second, DisableKeepAlives: true, - TLSClientConfig: &tls.Config{InsecureSkipVerify: true,ClientSessionCache: tlsSessionCache}, + TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, }, Timeout: 5 * time.Second, CheckRedirect: func(req *http.Request, via []*http.Request) error {