From acd5a77fc312ab4241e5490143359d4d2833d732 Mon Sep 17 00:00:00 2001 From: Seth Schoen Date: Sun, 15 Jul 2012 16:37:39 -0700 Subject: [PATCH] make the process faster by reducing delay times --- server-ca/chocolate.py | 2 +- server-ca/daemon.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server-ca/chocolate.py b/server-ca/chocolate.py index 737f675cb..5113c0b12 100755 --- a/server-ca/chocolate.py +++ b/server-ca/chocolate.py @@ -277,7 +277,7 @@ class session(object): # If we're in makechallenge or issue, tell the client to come back later. if state == "makechallenge" or state == "issue": r.proceed.timestamp = int(time.time()) - r.proceed.polldelay = 10 + r.proceed.polldelay = 4 return # If we're in testchallenge, tell the client about the challenges and their # current status. diff --git a/server-ca/daemon.py b/server-ca/daemon.py index a4b74a16a..a59d13c4f 100644 --- a/server-ca/daemon.py +++ b/server-ca/daemon.py @@ -271,5 +271,5 @@ while True: # in "issue" state expire. issue(session) session = None - else: time.sleep(2) + else: time.sleep(1) # This daemon doesn't currently act on pending-done sessions.