[zeromq-dev] 0MQ - message lost and crash

Wang Alfred alfredwang1979 at gmail.com
Wed Aug 18 12:11:21 CEST 2010


I'm trying to write a test program to test the performance of ZeroMQ, but I
encountered some problems.

The test uses 50 threads to send messages, each thread will sent 100
messages, and there is another thread for receiving messages. But I found
that I can not receive all messages, the total messages sent is 5000, but
the received is about 4300.

Another problem is that, if I use the tcp protocol, this test will crash.

I'm using C#, so I use the clrzmq http://www.zeromq.org/bindings:clr

I'm new to ZeroMQ, and form it's website, it claims to be thread safe if all
threads share one context, I think this test follows the guide. I
will appreciate it if someone can help to point out the problem, thanks.

I put the codes on http://pastebin.com/cPjKwKd2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100818/86944095/attachment.htm>

More information about the zeromq-dev mailing list