]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: acme: wait 5s before checking the challenges results
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 2 May 2025 08:18:24 +0000 (10:18 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 2 May 2025 08:18:24 +0000 (10:18 +0200)
Wait 5 seconds before trying to check if the challenges are ready, so it
let time to server to execute the challenges.

src/acme.c

index 87efad7ed1f34b4f11861abaf04d97d949be1eb9..7a80a6d7a2eea279f45fa05d17cc7defc58bed8b 100644 (file)
@@ -1856,6 +1856,9 @@ re:
                                if ((ctx->next_auth = ctx->next_auth->next) == NULL) {
                                        st = ACME_CHKCHALLENGE;
                                        ctx->next_auth = ctx->auths;
+                                       /* let 5 seconds before checking the challenge */
+                                       if (ctx->retryafter == 0)
+                                               ctx->retryafter = 5;
                                }
                                /* call with next auth or do the challenge step */
                                goto nextreq;