mirror of
https://github.com/chainreactors/spray.git
synced 2025-09-15 19:50:18 +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{
|
client = &Client{
|
||||||
standardClient: &http.Client{
|
standardClient: &http.Client{
|
||||||
Transport: &http.Transport{
|
Transport: &http.Transport{
|
||||||
//Proxy: Proxy,
|
|
||||||
//TLSHandshakeTimeout : delay * time.Second,
|
|
||||||
TLSClientConfig: &tls.Config{
|
TLSClientConfig: &tls.Config{
|
||||||
Renegotiation: tls.RenegotiateOnceAsClient,
|
Renegotiation: tls.RenegotiateNever,
|
||||||
InsecureSkipVerify: true,
|
InsecureSkipVerify: true,
|
||||||
},
|
},
|
||||||
TLSHandshakeTimeout: config.Timeout,
|
TLSHandshakeTimeout: config.Timeout,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user