Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

fs: Add "unexpected EOF reading trailer" as a retriable error - fixes #1730

Nick Craig-Wood3eb7f52e39e1
diff --git a/fs/error.go b/fs/error.go
index aa928cb9c..b81de2eda 100644
--- a/fs/error.go
+++ b/fs/error.go
@@ -225,6 +225,7 @@ func Cause(cause error) (retriable bool, err error) {
// errors and all errors were exported from the stdlib.
var retriableErrorStrings = []string{
"use of closed network connection", // not exported :-(
+ "unexpected EOF reading trailer",
}
// Errors which indicate networking errors which should be retried