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.
This commit is contained in:
Nick Craig-Wood 2019-08-03 15:11:23 +01:00
parent bbb8d43716
commit 7f7946564d

View File

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