0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-17 04:50:57 +08:00

minor problem in zmq_poll (select version) fixed

This commit is contained in:
Martin Lucina 2010-09-20 16:45:25 +02:00 committed by Martin Sustrik
parent 328c92a0a7
commit 1abfc92d26

View File

@ -539,7 +539,7 @@ int zmq_poll (zmq_pollitem_t *items_, int nitems_, long timeout_)
memcpy (&inset, &pollset_in, sizeof (fd_set));
memcpy (&outset, &pollset_out, sizeof (fd_set));
memcpy (&errset, &pollset_err, sizeof (fd_set));
int rc = select (maxfd, &inset, &outset, &errset,
int rc = select (maxfd + 1, &inset, &outset, &errset,
first_pass ? &zero_timeout : (timeout_ < 0 ? NULL : &timeout));
#if defined ZMQ_HAVE_WINDOWS
wsa_assert (rc != SOCKET_ERROR);