From 667cdfaee42d7ac50a2e8e2d5ab6230d4ea17472 Mon Sep 17 00:00:00 2001 From: Mate Ory Date: Tue, 30 Apr 2019 16:34:56 +0200 Subject: [PATCH] do not limit HTTP retries as the tool runs typically on boot, we should not limit the number of times we poll for conditions to meet our expectations. --- cmd/pke/app/util/transport/retry.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cmd/pke/app/util/transport/retry.go b/cmd/pke/app/util/transport/retry.go index 31ef6a4d..2dd3ce58 100644 --- a/cmd/pke/app/util/transport/retry.go +++ b/cmd/pke/app/util/transport/retry.go @@ -29,25 +29,21 @@ func NewRetryTransport(rt http.RoundTripper) *rehttp.Transport { rt, rehttp.RetryAny( rehttp.RetryAll( - rehttp.RetryMaxRetries(5), rehttp.RetryHTTPMethods(http.MethodGet), rehttp.RetryStatusInterval(400, 600), ), rehttp.RetryAll( - rehttp.RetryMaxRetries(5), rehttp.RetryHTTPMethods(http.MethodPost), rehttp.RetryStatusInterval(500, 600), ), rehttp.RetryAll( - rehttp.RetryMaxRetries(10), rehttp.RetryTemporaryErr(), ), rehttp.RetryAll( - rehttp.RetryMaxRetries(10), RetryConnectionRefusedErr(), ), ), - rehttp.ExpJitterDelay(2*time.Second, 30*time.Second), + rehttp.ExpJitterDelay(2*time.Second, 60*time.Second), ) }