rclone: add timeout option and documentation

This commit is contained in:
phcreery
2021-09-15 19:27:47 -05:00
committed by Michael Eischer
parent 6c84ea1412
commit 43d173b042
5 changed files with 15 additions and 3 deletions

View File

@@ -222,7 +222,7 @@ func newBackend(cfg Config, lim limiter.Limiter) (*Backend, error) {
// send an HTTP request to the base URL, see if the server is there
client := &http.Client{
Transport: debug.RoundTripper(tr),
Timeout: 60 * time.Second,
Timeout: cfg.Timeout * 60 * time.Second,
}
// request a random file which does not exist. we just want to test when