From 3eb7f52e39e19a4b3d2fa520289e16fb8b106c57 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 9 Oct 2017 17:29:16 +0100 Subject: [PATCH] fs: Add "unexpected EOF reading trailer" as a retriable error - fixes #1730 --- fs/error.go | 1 + 1 file changed, 1 insertion(+) 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