[zeromq-dev] sometimes zmq crashed when connection

Martin Sustrik sustrik at fastmq.com
Mon May 4 10:02:22 CEST 2009


Hi,

> python: locator.cpp:93: virtual void
> zmq::locator_t::resolve_endpoint(const char*, char*, size_t):
> Assertion `cmd == get_ok_id' failed.

I'm attaching a fragment of last month's discussion that addresses the 
problem:

<snip>
 > Also, I tried to wrap the functionality of py_remote_thr in a class. The
 > method "bind('EL','GQ')' method gives an assertion error  in locator.cpp
 >  line 93
 > cmd == get_ok_id

The problem here is that the global object ("service") that you are
trying to bind to is not running.

The idea is that services have to be online before clients are able to
connect to them.

If you want clients not to fail when the service is not available, you
can supply a list of services to zmq_server on startup. In that case
clients are periodically trying to reconnect to the service even if it's
not available at the moment. See zmq_server man page for more information:

http://www.zeromq.org/local--files/area:docs-v06/zmq_server.pdf
</snip>


Martin



More information about the zeromq-dev mailing list