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

fserrors: Make "tls: use of closed connection" a retriable error

Nick Craig-Wood044a3b3920bd
diff --git a/fs/fserrors/error.go b/fs/fserrors/error.go
index aa3e6067f..5d0b85dac 100644
--- a/fs/fserrors/error.go
+++ b/fs/fserrors/error.go
@@ -372,7 +372,8 @@ var retriableErrorStrings = []string{
"http: ContentLength=", // net/http/transfer.go
"server closed idle connection", // net/http/transport.go
"bad record MAC", // crypto/tls/alert.go
- "stream error:", // src/net/http/h2_bundle.go
+ "stream error:", // net/http/h2_bundle.go
+ "tls: use of closed connection", // crypto/tls/conn.go
}
// Errors which indicate networking errors which should be retried