From 7f7946564d7a0dd609dd18c13d9274d4711fe655 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sat, 3 Aug 2019 15:11:23 +0100 Subject: [PATCH] error: make "bad record MAC" a retriable error - Fixes #3338 The error "tls: bad record MAC" is very likely to be caused by hardware issues. It indicates that a packet got corrupted somewhere. As a work around, this change treats it as retriable error which allows the chunk to get retried and the transfer to continue. --- fs/fserrors/error.go | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/fserrors/error.go b/fs/fserrors/error.go index 46e859002..eb6d7055d 100644 --- a/fs/fserrors/error.go +++ b/fs/fserrors/error.go @@ -266,6 +266,7 @@ var retriableErrorStrings = []string{ "transport connection broken", // net/http/transport.go "http: ContentLength=", // net/http/transfer.go "server closed idle connection", // net/http/transport.go + "bad record MAC", // crypto/tls/alert.go } // Errors which indicate networking errors which should be retried