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
https://github.com/imatix/zguide/blob/master/examples/C%23/zmsg.cs.

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 <[email protected]> wrote:

> On Tue, Aug 7, 2012 at 4:28 PM, Dave Rutlidge <[email protected]>
> 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
> [email protected]
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to