Server `acceptClient` timeout parameter not used
doleron opened this issue · 2 comments
doleron commented
It seems the int timeout
parameter in:
Client TcpServer::acceptClient(uint timeout)
has no effect because it is not used to setup the timeval
struct.
It turns out the actual timeout is always 2 secs:
struct timeval tv;
tv.tv_sec = 2;
tv.tv_usec = 0;
elhayra commented
Thank you for contributing code to fix this
doleron commented
Thank you for contributing code to fix this
You're welcome!