mirror of
https://github.com/rclone/rclone.git
synced 2025-12-10 21:33:27 +00:00
Make ResponseHeaderTimeout be --timeout not --contimeout fixes #766
This was causing a problem with Amazon Drive which often pauses for a long time after uploads before returning the response.
This commit is contained in:
@@ -101,7 +101,7 @@ func (ci *ConfigInfo) Transport() http.RoundTripper {
|
|||||||
t.Proxy = http.ProxyFromEnvironment
|
t.Proxy = http.ProxyFromEnvironment
|
||||||
t.MaxIdleConnsPerHost = 4 * (ci.Checkers + ci.Transfers + 1)
|
t.MaxIdleConnsPerHost = 4 * (ci.Checkers + ci.Transfers + 1)
|
||||||
t.TLSHandshakeTimeout = ci.ConnectTimeout
|
t.TLSHandshakeTimeout = ci.ConnectTimeout
|
||||||
t.ResponseHeaderTimeout = ci.ConnectTimeout
|
t.ResponseHeaderTimeout = ci.Timeout
|
||||||
t.TLSClientConfig = &tls.Config{InsecureSkipVerify: ci.InsecureSkipVerify}
|
t.TLSClientConfig = &tls.Config{InsecureSkipVerify: ci.InsecureSkipVerify}
|
||||||
t.DisableCompression = *noGzip
|
t.DisableCompression = *noGzip
|
||||||
// Set in http_old.go initTransport
|
// Set in http_old.go initTransport
|
||||||
|
|||||||
Reference in New Issue
Block a user