Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Include DNS validation timeout
  • Loading branch information
jcameron committed Feb 5, 2017
1 parent 6dc037a commit f95f2ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webmin/acme_tiny.py
Expand Up @@ -156,7 +156,7 @@ def _send_signed_request(url, payload):
if code != 202:
raise ValueError("Error triggering challenge: {0} {1}".format(code, result))

# wait for challenge to be verified (for up to 60 seconds)
# wait for challenge to be verified (for up to 120 seconds)
tries = 0
while True:
try:
Expand All @@ -167,7 +167,7 @@ def _send_signed_request(url, payload):
e.code, json.loads(e.read().decode('utf8'))))
if challenge_status['status'] == "pending":
tries = tries + 1
if tries > 30:
if tries > 60:
raise ValueError("Gave up waiting for valiation")
time.sleep(2)
elif challenge_status['status'] == "valid":
Expand Down

0 comments on commit f95f2ce

Please sign in to comment.