Skip to content

Commit

Permalink
Merge pull request #7 from doleron/fix_6_server_accept_client_timeout…
Browse files Browse the repository at this point in the history
…_parameter_not_used

fix timeout parameter not used
  • Loading branch information
elhayra authored Jul 1, 2021
2 parents a57e491 + 473882b commit 5524c7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tcp_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ Client TcpServer::acceptClient(uint timeout) {

if (timeout > 0) {
struct timeval tv;
tv.tv_sec = 2;
tv.tv_sec = timeout;
tv.tv_usec = 0;
FD_ZERO(&m_fds);
FD_SET(m_sockfd, &m_fds);
Expand Down

0 comments on commit 5524c7e

Please sign in to comment.