From ec423b3f785487d2ad13365ff30cf67cfb415c4f Mon Sep 17 00:00:00 2001 From: Dean Karn Date: Thu, 28 Apr 2022 09:46:32 -0700 Subject: [PATCH 1/2] handle HTTP 408 as retryable --- net/http/retryable.go | 1 + 1 file changed, 1 insertion(+) diff --git a/net/http/retryable.go b/net/http/retryable.go index 6b1156f..7bb9c22 100644 --- a/net/http/retryable.go +++ b/net/http/retryable.go @@ -11,6 +11,7 @@ var ( http.StatusTooManyRequests: true, http.StatusBadGateway: true, http.StatusGatewayTimeout: true, + http.StatusRequestTimeout: true, // 524 is a Cloudflare specific error which indicates it connected to the origin server but did not receive // response within 100 seconds and so times out. From 0070d51cddc2922eab7015ea814ac3864688eae2 Mon Sep 17 00:00:00 2001 From: Dean Karn Date: Thu, 28 Apr 2022 09:51:40 -0700 Subject: [PATCH 2/2] update linter version --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index eb9e2b8..3129f7e 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -42,4 +42,4 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v2 with: - version: v1.43.0 \ No newline at end of file + version: v1.45.2 \ No newline at end of file