Adding in a configurable option for the accelerate daemon timeout

This was apparently an oversite, as it has never been configurable
despite having a module parameter for the timeout.
This commit is contained in:
James Cammarata 2014-03-23 14:45:05 -05:00
parent 1fa0fab6cb
commit 31628d86a1
2 changed files with 8 additions and 1 deletions

View file

@ -85,7 +85,13 @@ class Connection(object):
utils.AES_KEYS = self.runner.aes_keys
def _execute_accelerate_module(self):
args = "password=%s port=%s minutes=%d debug=%d ipv6=%s" % (base64.b64encode(self.key.__str__()), str(self.accport), constants.ACCELERATE_TIMEOUT, int(utils.VERBOSITY), self.runner.accelerate_ipv6)
args = "password=%s port=%s minutes=%d debug=%d ipv6=%s" % (
base64.b64encode(self.key.__str__()),
str(self.accport),
constants.ACCELERATE_DAEMON_TIMEOUT,
int(utils.VERBOSITY),
self.runner.accelerate_ipv6,
)
if constants.ACCELERATE_MULTI_KEY:
args += " multi_key=yes"
inject = dict(password=self.key)