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
The following method in ThreadedTCPSocketClient says it's default timeout is 100 ms, but it's actually 100 seconds.
def recv(self, timeout=100):
"""Receives data from the threaded tcp server
Receives raw data from the threaded tcp server. This data is expected to have no headers and will be passed as
received or in chunks back to the caller.
Args:
timeout {int}: timeout to wait for the socket to have data before returning b"". Default: 100ms.
"""
assert self.dest is not None, "Cannot recv data before connect call"
ready = select.select([self.sock], [], [], timeout)
return self.sock.recv(self.chunk_size) if ready[0] else b""
This is because the argument to select.select is in seconds, not milliseconds.
The text was updated successfully, but these errors were encountered:
You're welcome! Glad to be of service.
Hope you and the team are doing ok with the wildfires.
Standing by if the teams needs me to move forward with older tickets.
Matt
Problem Description
The following method in ThreadedTCPSocketClient says it's default timeout is 100 ms, but it's actually 100 seconds.
This is because the argument to select.select is in seconds, not milliseconds.
The text was updated successfully, but these errors were encountered: