From 8dde1cad10e41004e6eafb3edb06d196f94c4468 Mon Sep 17 00:00:00 2001 From: "satoru.kitaguchi" Date: Wed, 31 Aug 2022 14:37:01 +0900 Subject: [PATCH] aws/retry: Allows "use of closed network connection" errors to be retryable https://github.com/aws/aws-sdk-go/pull/3476 --- aws/retry/retryable_error.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aws/retry/retryable_error.go b/aws/retry/retryable_error.go index c695e6fe527..4c770e59a23 100644 --- a/aws/retry/retryable_error.go +++ b/aws/retry/retryable_error.go @@ -100,7 +100,8 @@ func (r RetryableConnectionError) IsErrorRetryable(err error) aws.Ternary { case errors.As(err, &conErr) && conErr.ConnectionError(): retryable = true - case strings.Contains(err.Error(), "connection reset"): + case strings.Contains(err.Error(), "connection reset"), + strings.Contains(err.Error(), "use of closed network connection"): retryable = true case errors.As(err, &urlErr):