From 9f5aa5a055c2543606b05b2800e5f06a9c4089ec Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Wed, 7 Sep 2022 12:22:55 -0400 Subject: [PATCH] Agent: Drop DEFAULT_DISCONNECT_TIMEOUT to 2 minutes Agents should be sending data back to the island very frequently. 2 minutes should be plenty. Consider adding a heartbeat and reducing this timeout further. --- monkey/infection_monkey/network/relay/relay_user_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/infection_monkey/network/relay/relay_user_handler.py b/monkey/infection_monkey/network/relay/relay_user_handler.py index 5755d2794..63c4000e0 100644 --- a/monkey/infection_monkey/network/relay/relay_user_handler.py +++ b/monkey/infection_monkey/network/relay/relay_user_handler.py @@ -10,7 +10,7 @@ from common.utils.code_utils import del_key # Wait for potential new clients to connect DEFAULT_NEW_CLIENT_TIMEOUT = 2.5 * MEDIUM_REQUEST_TIMEOUT -DEFAULT_DISCONNECT_TIMEOUT = 60 * 10 # Wait up to 10 minutes for clients to disconnect +DEFAULT_DISCONNECT_TIMEOUT = 60 * 2 # Wait up to 2 minutes for clients to disconnect @dataclass