elhayra/tcp_server_client

Server `acceptClient` timeout parameter not used

doleron opened this issue · 2 comments

It seems the int timeout parameter in:

Client TcpServer::acceptClient(uint timeout)

has no effect because it is not used to setup the timevalstruct.

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

Thank you for contributing code to fix this

You're welcome!