[zeromq-dev] Assertion failed: fds.size() <= FD_SETSIZE in select.cpp:67
Олег Севостьянов
oleg.sev at gmail.com
Tue Nov 16 09:33:45 CET 2010
2010/11/16 Martin Sustrik <sustrik at 250bpm.com>:
> If someone actually tests that setting FD_SETSIZE to 1024 in 0MQ MSVC
> project doesn't break client applications with different FD_SETSIZE
> values (say default 64), I'll apply the change straight away.
I think it's not good idea. Maybe I don't undestand code correctly,
but this part:
// Store the file descriptor.
fd_entry_t entry = {fd_, events_};
fds.push_back (entry);
// Ensure we do not attempt to select () on more than FD_SETSIZE
// file descriptors.
zmq_assert (fds.size () <= FD_SETSIZE);
push into fds descriptors, but where is pop? If FD_SETSIZE = 1024,
application fail on 1024 cycle, right?
--
С уважением,
Олег Севостьянов
JabberID: boojab at jabber.ru
More information about the zeromq-dev
mailing list