"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
s3: retry RequestTimeout errors
Nick Craig-Woodfa48b880c2dc
diff --git a/backend/s3/s3.go b/backend/s3/s3.goindex ac5e112cb..dd894db18 100644--- a/backend/s3/s3.go+++ b/backend/s3/s3.go@@ -2121,6 +2121,10 @@ func (f *Fs) shouldRetry(ctx context.Context, err error) (bool, error) {if fserrors.ShouldRetry(awsError.OrigErr()) {return true, err}+ // If it is a timeout then we want to retry that+ if awsError.Code() == "RequestTimeout" {+ return true, err+ }// Failing that, if it's a RequestFailure it's probably got an http status code we can checkif reqErr, ok := err.(awserr.RequestFailure); ok {// 301 if wrong region for bucket - can only update if running from a bucket