enhance http tls performance

This commit is contained in:
M09Ic committed 2024-08-21 15:57:41 +08:00
1 parent 0a3c3cd192
commit 6326902a5e
1 file changed
+1 -3
+1 -3
View File
@@ -62,10 +62,8 @@ func NewClient(config *ClientConfig) *Client {
client = &Client{
standardClient: &http.Client{
Transport: &http.Transport{
//Proxy: Proxy,
//TLSHandshakeTimeout : delay * time.Second,
TLSClientConfig: &tls.Config{
Renegotiation: tls.RenegotiateOnceAsClient,
Renegotiation: tls.RenegotiateNever,
InsecureSkipVerify: true,
},
TLSHandshakeTimeout: config.Timeout,