[zeromq-dev] Why doesn't 0mq save fd by merging sockets connecting to the same address?

Yichao Zhang echaozh at gmail.com
Sat Oct 15 21:52:40 CEST 2011


Hi all,

If you create N sockets from the same context and connect them all to the
same remote address, there will be N file descriptors opened by the 0mq
library. Am I wrong to assume that it is possible for the library to use
only 1 fd and multiplex incoming messages to socket mailboxes based on their
identifies?

Saving fds will be very helpful if we write programs with a lot of threads
which all connect to the same remote address, especially when there are more
than 1 such socket for each thread. The program will quickly run out of fds
if one is needed for each socket mailbox.

-- Yichao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20111015/03103f4b/attachment.htm>


More information about the zeromq-dev mailing list