"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
onedrive: fix Retry-After handling to look at 503 errors also
Nick Craig-Wood175aa07cddff
diff --git a/backend/onedrive/onedrive.go b/backend/onedrive/onedrive.goindex 3ceac3f55..f7555017e 100644--- a/backend/onedrive/onedrive.go+++ b/backend/onedrive/onedrive.go@@ -827,7 +827,7 @@ func shouldRetry(ctx context.Context, resp *http.Response, err error) (bool, errretry = truefs.Debugf(nil, "HTTP 401: Unable to initialize RPS. Trying again.")}- case 429: // Too Many Requests.+ case 429, 503: // Too Many Requests, Server Too Busy// see https://docs.microsoft.com/en-us/sharepoint/dev/general-development/how-to-avoid-getting-throttled-or-blocked-in-sharepoint-onlineif values := resp.Header["Retry-After"]; len(values) == 1 && values[0] != "" {retryAfter, parseErr := strconv.Atoi(values[0])