1
0
mirror of https://github.com/rclone/rclone.git synced 2025-03-12 14:18:42 +01:00

fs: Add more errors to retry - fixes

This commit is contained in:
Nick Craig-Wood 2017-10-10 19:51:02 +01:00
parent 106bc1c9fc
commit 43ced30f11

View File

@ -224,8 +224,10 @@ func Cause(cause error) (retriable bool, err error) {
// This is incredibly ugly - if only errors.Cause worked for all // This is incredibly ugly - if only errors.Cause worked for all
// errors and all errors were exported from the stdlib. // errors and all errors were exported from the stdlib.
var retriableErrorStrings = []string{ var retriableErrorStrings = []string{
"use of closed network connection", // not exported :-( "use of closed network connection", // internal/poll/fd.go
"unexpected EOF reading trailer", "unexpected EOF reading trailer", // net/http/transfer.go
"transport connection broken", // net/http/transport.go
"http: ContentLength=", // net/http/transfer.go
} }
// Errors which indicate networking errors which should be retried // Errors which indicate networking errors which should be retried