mirror of
https://github.com/chainreactors/spray.git
synced 2025-09-15 11:40:13 +00:00
enhance http tls performance
This commit is contained in:
parent
937855c075
commit
57eab148ac
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user