Skip to content

Commit 6c2e831

Browse files
author
Dean Karn
authored
handle HTTP 408 as retryable (#12)
1 parent 2d71977 commit 6c2e831

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ jobs:
4242
- name: golangci-lint
4343
uses: golangci/golangci-lint-action@v2
4444
with:
45-
version: v1.43.0
45+
version: v1.45.2

net/http/retryable.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ var (
1111
http.StatusTooManyRequests: true,
1212
http.StatusBadGateway: true,
1313
http.StatusGatewayTimeout: true,
14+
http.StatusRequestTimeout: true,
1415

1516
// 524 is a Cloudflare specific error which indicates it connected to the origin server but did not receive
1617
// response within 100 seconds and so times out.

0 commit comments

Comments
 (0)