WebDAV: Improve update and reset of remote connection errors #1781

This commit is contained in:
Michael Mayer
2022-03-27 21:37:11 +02:00
parent 45922f8db0
commit 736b03f87f
22 changed files with 392 additions and 137 deletions

View File

@@ -14,9 +14,9 @@ func (worker *Sync) refresh(a entity.Account) (complete bool, err error) {
return false, nil
}
client := webdav.New(a.AccURL, a.AccUser, a.AccPass)
client := webdav.New(a.AccURL, a.AccUser, a.AccPass, webdav.Timeout(a.AccTimeout))
subDirs, err := client.Directories(a.SyncPath, true, webdav.AsyncTimeout)
subDirs, err := client.Directories(a.SyncPath, true, webdav.MaxRequestDuration)
if err != nil {
log.Error(err)