main
lzf 2025-08-19 15:31:43 +08:00
parent 866b2cf1ed
commit 898d7144f1
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ func NewTransport(maxConn int, idleTimeout time.Duration) *http.Transport {
tr.MaxIdleConnsPerHost = maxConn tr.MaxIdleConnsPerHost = maxConn
tr.IdleConnTimeout = idleTimeout tr.IdleConnTimeout = idleTimeout
tr.DisableKeepAlives = false tr.DisableKeepAlives = false
tr.ResponseHeaderTimeout = time.Second * 10 //tr.ResponseHeaderTimeout = time.Second * 10
//tr.TLSClientConfig = &tls.Config{InsecureSkipVerify: false} //tr.TLSClientConfig = &tls.Config{InsecureSkipVerify: false}
return tr return tr
} }