Closed doleron closed 3 years ago
It seems the int timeout parameter in:
int timeout
Client TcpServer::acceptClient(uint timeout)
has no effect because it is not used to setup the timevalstruct.
timeval
It turns out the actual timeout is always 2 secs:
struct timeval tv; tv.tv_sec = 2; tv.tv_usec = 0;
Thank you for contributing code to fix this
You're welcome!
It seems the
int timeout
parameter in:has no effect because it is not used to setup the
timeval
struct.It turns out the actual timeout is always 2 secs: