mirror of
https://github.com/rclone/rclone
synced 2024-12-04 14:35:20 +01: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:
parent
98804cb860
commit
d42b38699b
@ -101,7 +101,7 @@ func (ci *ConfigInfo) Transport() http.RoundTripper {
|
||||
t.Proxy = http.ProxyFromEnvironment
|
||||
t.MaxIdleConnsPerHost = 4 * (ci.Checkers + ci.Transfers + 1)
|
||||
t.TLSHandshakeTimeout = ci.ConnectTimeout
|
||||
t.ResponseHeaderTimeout = ci.ConnectTimeout
|
||||
t.ResponseHeaderTimeout = ci.Timeout
|
||||
t.TLSClientConfig = &tls.Config{InsecureSkipVerify: ci.InsecureSkipVerify}
|
||||
t.DisableCompression = *noGzip
|
||||
// Set in http_old.go initTransport
|
||||
|
Loading…
Reference in New Issue
Block a user