[zeromq-dev] ZMQ Crash from unknown DNS name

Joshua Foster jhawk28 at gmail.com
Tue Jan 25 23:50:09 CET 2011


I am trying to setup a service with ZeroMQ that subscribes to a TCP 
endpoint that doesn't exist when the computer starts up. I am using the 
computer name as I don't know what the DHCP address will be. ZMQ crashes 
with the following assertion: Assertion failed: rc == 0 
(..\..\..\src\zmq_connecter.cpp:46)

Is this supposed to happen?

Here is some sample code that demonstrates the issue:
     ZMQ.Context ctx = ZMQ.context(1);
     ZMQ.Socket s = ctx.socket(ZMQ.SUB);
     s.subscribe("".getBytes());
     s.connect("tcp://mycompname:5555");

Joshua



More information about the zeromq-dev mailing list