Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

Make ResponseHeaderTimeout be `--timeout` not `--contimeout` fixes #766

Nick Craig-Woodd42b38699bbc
diff --git a/fs/http.go b/fs/http.go
index f49fefd65..c8f5f20c8 100644
--- a/fs/http.go
+++ b/fs/http.go
@@ -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