mirror of
https://github.com/chainreactors/spray.git
synced 2026-10-29 03:50:47 +00:00
enhance http tls performance
This commit is contained in:
1 parent
0a3c3cd192
commit
6326902a5e
1 file changed
+1
-3
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user