Merge pull request #6713 from projectdiscovery/dwisiswant0/feat/enable-TLS-session-cache-for-client-pool

feat: enable TLS session cache for client pool
This commit is contained in:
Mzack9999
2025-12-18 14:00:58 +04:00
committed by GitHub
2 changed files with 2 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ func newHttpClient(options *types.Options) (*http.Client, error) {
Renegotiation: tls.RenegotiateOnceAsClient,
InsecureSkipVerify: true,
MinVersion: tls.VersionTLS10,
ClientSessionCache: tls.NewLRUClientSessionCache(1024),
}
if options.SNI != "" {

View File

@@ -248,6 +248,7 @@ func wrappedGet(options *types.Options, configuration *Configuration) (*retryabl
Renegotiation: tls.RenegotiateOnceAsClient,
InsecureSkipVerify: true,
MinVersion: tls.VersionTLS10,
ClientSessionCache: tls.NewLRUClientSessionCache(1024),
}
if options.SNI != "" {