Skip to content

Commit

Permalink
Merge pull request #1723 from kevoreilly/testing
Browse files Browse the repository at this point in the history
Update resultserver.py
  • Loading branch information
doomedraven authored Aug 31, 2023
2 parents 0f6df10 + 27f5cf1 commit 9929f42
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/cuckoo/core/resultserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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?. <Context for {self.command}>", e)
return b""
except socket.error as e:
if e.errno == errno.EBADF:
Expand Down

0 comments on commit 9929f42

Please sign in to comment.