]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: acme: delay of 5s after the finalize
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 2 May 2025 08:34:48 +0000 (10:34 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 2 May 2025 08:34:48 +0000 (10:34 +0200)
Let 5 seconds by default to the server after the finalize to generate
the certificate. Some servers would not send a Retry-After during
processing.

src/acme.c

index 272642fa01177ad27d666ddf94314857d050ab46..b8600f7951e26167c45971d3ec44a7142e8cdf01 100644 (file)
@@ -1892,6 +1892,9 @@ re:
                                if (acme_res_finalize(task, ctx, &errmsg) != 0) {
                                        goto retry;
                                }
+                               /* let 5 seconds to the server to generate the cert */
+                               if (ctx->retryafter == 0)
+                                       ctx->retryafter = 5;
                                st = ACME_CHKORDER;
                                goto nextreq;
                        }