[zeromq-dev] ZMQ Freezing Windows

Dave R. anemailfordave at gmail.com
Tue Aug 7 10:39:50 CEST 2012

Sorry, it looks like what I wrote was not clear. I didn't change the ZMQ
stuff, I'm using the packaged library from NuGet.  All I changed was the
example code from the ZMQ guide lruqueue2 example to make the "Hello"
messages unique. I also set the HWM on all the sockets to 10.

To be totally clear, the problem is happening with the unmodified sample
code from the ZMQ guide and the packaged library.

ZMessage isn't included in the NuGet library so I took that from

The example code (  http://zguide.zeromq.org/cs:lruqueue2  ) creates 10
clients (1 socket each) and 3 workers (also 1 socket each) and a broker (2
sockets) so the total number of sockets used is 15. The code doesn't do
anything silly like keep recreating the sockets so only 15 sockets are
being created.

On Tue, Aug 7, 2012 at 8:54 AM, Pieter Hintjens <ph at imatix.com> wrote:

> On Tue, Aug 7, 2012 at 4:28 PM, Dave Rutlidge <anemailfordave at gmail.com>
> wrote:
> > Thanks for that. I set the HWM at 10 for all the sockets. When I ran it I
> > still got the assertion failure after a short time (couple of seconds, if
> > that):
> >
> > Assertion failed: fds.size () <= FD_SETSIZE (..\..\..\src\select.cpp:69)
> Sounds like you changed this in the wrong place or in a single source
> file. There is in the MSVC project a definition for FD_SETSIZE; set
> this to 1024 or more, and rebuild everything (and remove your
> hand-made change).
> > I changed the code to add a number to the "Hello" message. I got the
> > assertion after about 1027 messages sent.
> It's a matter of how many sockets you have open, not messages you send.
> -Pieter
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120807/b561ddac/attachment.htm>

More information about the zeromq-dev mailing list