From 927427ffc129a94d216d7af293192f6d43668381 Mon Sep 17 00:00:00 2001 From: David Huss <dh@atoav.com> Date: Mon, 15 Mar 2021 17:22:16 +0100 Subject: [PATCH] Add timeout to connection testing --- stechuhr_client/client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/stechuhr_client/client.py b/stechuhr_client/client.py index 0ed9873..cc00bd8 100644 --- a/stechuhr_client/client.py +++ b/stechuhr_client/client.py @@ -202,6 +202,7 @@ def process_request(output_queue, config=None, logger=None): if logger is not None: logger.warn("Didn't reach server at {} for {} attempts: ".format(url, attempts, e)) attempts += 1 + time.sleep(6) else: time.sleep(0.01) -- GitLab