mirror of
https://github.com/restic/restic.git
synced 2025-08-13 19:56:42 +00:00
rclone: add timeout option and documentation
This commit is contained in:

committed by
Michael Eischer

parent
6c84ea1412
commit
43d173b042
@@ -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
|
||||
|
Reference in New Issue
Block a user