mirror of
				https://github.com/rclone/rclone.git
				synced 2025-10-30 23:17:59 +02:00 
			
		
		
		
	fs: Add more errors to retry - fixes #1733
This commit is contained in:
		| @@ -224,8 +224,10 @@ func Cause(cause error) (retriable bool, err error) { | ||||
| // This is incredibly ugly - if only errors.Cause worked for all | ||||
| // errors and all errors were exported from the stdlib. | ||||
| var retriableErrorStrings = []string{ | ||||
| 	"use of closed network connection", // not exported :-( | ||||
| 	"unexpected EOF reading trailer", | ||||
| 	"use of closed network connection", // internal/poll/fd.go | ||||
| 	"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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user