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

use required number of descriptors (1) instead of FD_SETSIZE

This commit is contained in:
KIU Shueng Chuan 2018-11-07 09:58:16 +08:00
parent 63abe83388
commit 9a15fe7fac

View File

@ -266,7 +266,7 @@ int zmq::signaler_t::wait (int timeout_)
#elif defined ZMQ_POLL_BASED_ON_SELECT
optimized_fd_set_t fds (FD_SETSIZE);
optimized_fd_set_t fds (1);
FD_ZERO (fds.get ());
FD_SET (_r, fds.get ());
struct timeval timeout;