Commit 05291729 authored by Benziane Chakib's avatar Benziane Chakib

Updated reauthentication algorithm

parent 9d60d176
......@@ -32,6 +32,8 @@ DEFAULT_CONFIGURATION = {
#'ssl_cert': '',
}
MAX_AUTH_TIMEOUT = 10
def run_node(options):
# Setup logging facility:
......@@ -74,6 +76,9 @@ def run_node(options):
return
else:
timeout += 0.1
maxtimeout = MAX_AUTH_TIMEOUT
if timeout == maxtimeout:
timeout = maxtimeout
sleep(exp(timeout))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment