Update const of timeout

This commit is contained in:
Shay Nehmad 2019-05-05 20:47:36 +03:00
parent 99bc61f9d9
commit 03420aae50
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ LOG = logging.getLogger(__name__)
DOWNLOAD_CHUNK = 1024
# random number greater than 5,
# to prevent the monkey from just waiting forever to try and connect to an island before going elsewhere.
TIMEOUT = 15
TIMEOUT_IN_SECONDS = 15
class ControlClient(object):
@ -76,7 +76,7 @@ class ControlClient(object):
requests.get("https://%s/api?action=is-up" % (server,),
verify=False,
proxies=ControlClient.proxies,
timeout=TIMEOUT)
timeout=TIMEOUT_IN_SECONDS)
WormConfiguration.current_server = current_server
break