From 4ad08794c9d7ef37754338a2c5a8e33c9d83f780 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 5 Nov 2018 14:51:05 +0000 Subject: [PATCH] fserrors: add "server closed idle connection" to retriable errors This seems to be related to this go issue: https://github.com/golang/go/issues/19943 See: https://forum.rclone.org/t/copy-from-dropbox-to-google-drive-yields-failed-to-copy-failed-to-open-source-object-server-closed-idle-connection-error/7460 --- fs/fserrors/error.go | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/fserrors/error.go b/fs/fserrors/error.go index 4357f4702..a2ede7416 100644 --- a/fs/fserrors/error.go +++ b/fs/fserrors/error.go @@ -233,6 +233,7 @@ var retriableErrorStrings = []string{ "unexpected EOF reading trailer", // net/http/transfer.go "transport connection broken", // net/http/transport.go "http: ContentLength=", // net/http/transfer.go + "server closed idle connection", // net/http/transport.go } // Errors which indicate networking errors which should be retried