enhance http tls performance

This commit is contained in:
M09Ic 2024-08-21 15:57:41 +08:00
parent 937855c075
commit 57eab148ac

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,