acmecert: Treat pending as processing for a few retries...
authorFredrik Tolf <fredrik@dolda2000.com>
Tue, 9 Nov 2021 21:12:22 +0000 (22:12 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Tue, 9 Nov 2021 21:12:22 +0000 (22:12 +0100)
Seems like a server bug, but apparently here we are.

acmecert

index 9cf9b6a..0ba66e2 100755 (executable)
--- a/acmecert
+++ b/acmecert
@@ -251,7 +251,10 @@ def authorder(acct, htconf, orderid):
                     elif resp["status"] == "pending":
                         # I don't think this should happen, but it
                         # does. LE bug? Anyway, just retry.
-                        break
+                        if n < 5:
+                            time.sleep(2)
+                        else:
+                            break
                     elif resp["status"] == "valid":
                         break
                     else: