From 044a3b3920bd7a2f849c15fe51355f75d5de4a68 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Tue, 5 May 2020 10:14:04 +0100 Subject: [PATCH] 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 --- fs/fserrors/error.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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