Use the timeout value for non-blocking
parent
94e089eea8
commit
b848ae0527
|
@ -67,6 +67,9 @@ static int tcp_select(SOCKET_T socketfd, int to_sec, int rx)
|
|||
else
|
||||
sendfds = &fds;
|
||||
|
||||
timeout.tv_sec = to_sec;
|
||||
timeout.tv_usec = 0;
|
||||
|
||||
result = select(nfds, recvfds, sendfds, &errfds, &timeout);
|
||||
|
||||
if (result == 0)
|
||||
|
|
|
@ -69,6 +69,9 @@ static int tcp_select(SOCKET_T socketfd, int to_sec, int rx)
|
|||
else
|
||||
sendfds = &fds;
|
||||
|
||||
timeout.tv_sec = to_sec;
|
||||
timeout.tv_usec = 0;
|
||||
|
||||
result = select(nfds, recvfds, sendfds, &errfds, &timeout);
|
||||
|
||||
if (result == 0)
|
||||
|
|
Loading…
Reference in New Issue