diff --git a/myhttp/httpc/httpclient.go b/myhttp/httpc/httpclient.go index f79ee3e..6fe31a1 100644 --- a/myhttp/httpc/httpclient.go +++ b/myhttp/httpc/httpclient.go @@ -50,6 +50,7 @@ func NewTransport(maxConn int, idleTimeout time.Duration) *http.Transport { tr.MaxIdleConnsPerHost = maxConn tr.IdleConnTimeout = idleTimeout tr.DisableKeepAlives = false + tr.ResponseHeaderTimeout = time.Second * 10 //tr.TLSClientConfig = &tls.Config{InsecureSkipVerify: false} return tr }