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:
parent
63abe83388
commit
9a15fe7fac
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user