fs: Add "unexpected EOF reading trailer" as a retriable error - fixes #1730

This commit is contained in:
Nick Craig-Wood 2017-10-09 17:29:16 +01:00
parent 7f3dc9b5c4
commit 3eb7f52e39

View File

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