[zeromq-dev] debugging ZMQ

Pieter Hintjens ph at imatix.com
Sat Nov 19 18:58:55 CET 2011


These are standard concerns with 0MQ development. There is no simple
answer. It does depend on the type of socket you're using, since PUB
and ROUTER sockets will simply drop messages if there's no-one to send
to. In general the simplest way to trace activity is to print messages
as you send and recv them, and run your tests with small numbers of
messages so you can follow exactly what's going on.


On Sat, Nov 19, 2011 at 11:27 AM, Kevin Mahoney <kemahoney at aircell.com> wrote:
> I am writing an app that utilizes ZMQ for messaging between processes. In
> order to unit test the app, I am attempting to create a special  loopback
> socket. Without going into too many details about the app yet, I was
> wondering if there are ways to get socket status in order to help identify
> why messages are not getting sent or received. How do you tell if a socket
> is connected to something on the other side? Is there a way to determine how
> many messages are in the queue?
> Thanks,
> Kevin
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

More information about the zeromq-dev mailing list