mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 00:22:28 +02:00
poll_interval variable to control frequency of client requests
This commit is contained in:
@@ -13,6 +13,8 @@ from CONFIG import max_names, max_csr_size, maximum_session_age
|
|||||||
from CONFIG import maximum_challenge_age, hashcash_expiry, extra_name_blacklist
|
from CONFIG import maximum_challenge_age, hashcash_expiry, extra_name_blacklist
|
||||||
from CONFIG import cert_chain_file, debug
|
from CONFIG import cert_chain_file, debug
|
||||||
|
|
||||||
|
poll_interval = 10
|
||||||
|
|
||||||
try:
|
try:
|
||||||
chocolate_server_name = open("SERVERNAME").read().rstrip()
|
chocolate_server_name = open("SERVERNAME").read().rstrip()
|
||||||
except IOError:
|
except IOError:
|
||||||
@@ -320,6 +322,8 @@ class session(object):
|
|||||||
# If we're in testchallenge, tell the client about the challenges and their
|
# If we're in testchallenge, tell the client about the challenges and their
|
||||||
# current status.
|
# current status.
|
||||||
if state == "testchallenge":
|
if state == "testchallenge":
|
||||||
|
# If the client claims to have completed some challenges, try to test
|
||||||
|
# them, if the client hasn't asked us to do so too recently.
|
||||||
if m.completedchallenge:
|
if m.completedchallenge:
|
||||||
try:
|
try:
|
||||||
with redis_lock(sessions, "lock-" + self.id, one_shot=True):
|
with redis_lock(sessions, "lock-" + self.id, one_shot=True):
|
||||||
|
|||||||
Reference in New Issue
Block a user