TLS连接增加握手超时检查

This commit is contained in:
刘祥超
2021-12-18 19:17:40 +08:00
parent f25de8d5c9
commit 38e06e7b03
8 changed files with 60 additions and 17 deletions

View File

@@ -174,7 +174,7 @@ func (this *HTTPClientPool) Client(req *HTTPRequest, origin *serverconfigs.Origi
MaxConnsPerHost: maxConnections,
IdleConnTimeout: idleTimeout,
ExpectContinueTimeout: 1 * time.Second,
TLSHandshakeTimeout: 0, // 不限
TLSHandshakeTimeout: 10 * time.Second,
TLSClientConfig: tlsConfig,
Proxy: nil,
}