]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MEDIUM: acme: reset the remaining retries
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 24 Apr 2025 15:50:29 +0000 (17:50 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 24 Apr 2025 18:14:47 +0000 (20:14 +0200)
When a request succeed, reset the remaining retries to the default
ACME_RETRY value (3 by default).

src/acme.c

index 2debfdb4ec8932ff98626e47ac866c23e52fcfea..422f02b728e9370bb027c70d4dfc8626bc9567ad 100644 (file)
@@ -1757,6 +1757,7 @@ struct task *acme_process(struct task *task, void *context, unsigned int state)
 
        }
 
+       ctx->retries = ACME_RETRY;
        ctx->http_state = http_st;
        ctx->state = st;
        task->expire = TICK_ETERNITY;