Commit 05291729 authored by Benziane Chakib's avatar Benziane Chakib
Browse files

Updated reauthentication algorithm

parent 9d60d176
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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))