Skip to content

Commit

Permalink
Revert "[test] Added a TLS session cache"
Browse files Browse the repository at this point in the history
This reverts commit 5df4ca9.
  • Loading branch information
gboddin committed Jul 5, 2021
1 parent 5c59a90 commit b5ed754
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions l9plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ type ServicePluginInterface interface {
type ServicePluginBase struct {
}

var TlsSessionCache = tls.NewLRUClientSessionCache(4096*1024)

func (plugin ServicePluginBase) Init() error {
return nil
}
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit b5ed754

Please sign in to comment.