forked from TrueCloudLab/rclone
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
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue