[zeromq-dev] Pattern for clean shutdown of a proxy loop

Cosmo Harrigan cosmo.harrigan at singularityu.org
Tue Mar 11 21:35:51 CET 2014


What is the best practice when you are creating a loop that functions like
the zmq_proxy device, to bind a PULL socket that is fed by a backend
ventilator with a frontend PUB socket, in order to properly handle a clean

Most of the examples on the zguide just show "while (1)" with a loop that
never terminates. What's the suggested way of signaling to the loop which
is running in its own thread that it is time to shut down?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140311/e451b5ac/attachment.htm>

More information about the zeromq-dev mailing list