Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server acceptClient timeout parameter not used #6

Closed
doleron opened this issue Feb 16, 2021 · 2 comments
Closed

Server acceptClient timeout parameter not used #6

doleron opened this issue Feb 16, 2021 · 2 comments

Comments

@doleron
Copy link
Contributor

doleron commented Feb 16, 2021

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;
@elhayra
Copy link
Owner

elhayra commented Jul 1, 2021

Thank you for contributing code to fix this

@elhayra elhayra closed this as completed Jul 1, 2021
@doleron
Copy link
Contributor Author

doleron commented Sep 23, 2021

Thank you for contributing code to fix this

You're welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants