Use the correct descriptor size.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40652 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
c588b4278a
commit
5b1fc2da98
@ -212,7 +212,7 @@ SocketConnection::WaitForData(bigtime_t timeout)
|
||||
/* Set the socket in the mask. */
|
||||
FD_SET(fSocket, &fds);
|
||||
|
||||
int result = select(32, &fds, NULL, NULL, &tv);
|
||||
int result = select(fSocket + 1, &fds, NULL, NULL, &tv);
|
||||
if (result == 0)
|
||||
return B_TIMED_OUT;
|
||||
if (result < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user