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

This has happened when uploading very large files to B2. It is
probably a bug in the go runtime but we'll attempt to work-around it
here.

See: https://forum.rclone.org/t/large-file-upload-to-backblaze-failed/16128/5
This commit is contained in:
Nick Craig-Wood 2020-05-05 10:14:04 +01:00
parent d342f9f942
commit 044a3b3920

View File

@ -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