From c021d54c05f67685d7eba7989eba363bc62dee5b Mon Sep 17 00:00:00 2001 From: Kekoa Kaaikala Date: Tue, 6 Sep 2022 14:57:10 +0000 Subject: [PATCH] Agent: Reduce relay shutdown responsiveness --- monkey/infection_monkey/tcp_relay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/infection_monkey/tcp_relay.py b/monkey/infection_monkey/tcp_relay.py index a79adf334..abe7ae56a 100644 --- a/monkey/infection_monkey/tcp_relay.py +++ b/monkey/infection_monkey/tcp_relay.py @@ -41,11 +41,11 @@ class TCPRelay(Thread): Blocks until the users disconnect or the timeout has elapsed. """ while self._user_handler.has_potential_users(): - sleep(0.01) + sleep(0.5) def _wait_for_pipes_to_close(self): """ Blocks until the pipes have closed. """ while self._pipe_spawner.has_open_pipes(): - sleep(0.01) + sleep(0.5)