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:
@@ -212,7 +212,7 @@ SocketConnection::WaitForData(bigtime_t timeout)
|
|||||||
/* Set the socket in the mask. */
|
/* Set the socket in the mask. */
|
||||||
FD_SET(fSocket, &fds);
|
FD_SET(fSocket, &fds);
|
||||||
|
|
||||||
int result = select(32, &fds, NULL, NULL, &tv);
|
int result = select(fSocket + 1, &fds, NULL, NULL, &tv);
|
||||||
if (result == 0)
|
if (result == 0)
|
||||||
return B_TIMED_OUT;
|
return B_TIMED_OUT;
|
||||||
if (result < 0)
|
if (result < 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user