You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there has been no new messages since the last execution of _query (more precisely of inst.rcon.exec_command("a")), then self._sock.recv(HEADER_SIZE) in _recv_pkt (
While this is not critical, it is avoidable (timeouts last ~10s, making the whole execution hang). All that is needed is to check if the socket has new content before executing _recv_pkt (or earlier) via:
import select
r, _, _ = select.select([self._sock], [], [], 0)
if len(r) == 0: return # the socket doesn't have new content
The text was updated successfully, but these errors were encountered:
In cogs/logs.py
Archon/cogs/logs.py
Line 93 in d4abbec
If there has been no new messages since the last execution of
_query
(more precisely ofinst.rcon.exec_command("a")
), thenself._sock.recv(HEADER_SIZE)
in_recv_pkt
(Archon/rcon/connection.py
Line 166 in d4abbec
While this is not critical, it is avoidable (timeouts last ~10s, making the whole execution hang). All that is needed is to check if the socket has new content before executing
_recv_pkt
(or earlier) via:The text was updated successfully, but these errors were encountered: