From 27f5cf1b60fd1aac04856858130d7ea73fb9a41c Mon Sep 17 00:00:00 2001 From: doomedraven Date: Wed, 30 Aug 2023 22:23:08 +0200 Subject: [PATCH] Update resultserver.py --- lib/cuckoo/core/resultserver.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/cuckoo/core/resultserver.py b/lib/cuckoo/core/resultserver.py index bbf53171610..7b93628e28c 100644 --- a/lib/cuckoo/core/resultserver.py +++ b/lib/cuckoo/core/resultserver.py @@ -106,9 +106,11 @@ def cancel(self): def read(self): try: + # Test + self.sock.settimeout(None) return self.sock.recv(16384) except socket.timeout as e: - print("Do we need to fix it?", e) + print(f"Do we need to fix it?. ", e) return b"" except socket.error as e: if e.errno == errno.EBADF: