[zeromq-dev] XREP/XREQ And Inproc . Clean Shutdown

Antonio Teixeira eagle.antonio at gmail.com
Wed Feb 29 18:31:54 CET 2012


I'm using pyzmq to build a small app and connecting it to a backend using

So in simple terms :

external socket XXXX:12134 XREP
Internal Backend IPC/XXX XREQ
Internal Worker IPC/XXX REP

And server(s) Using REQ to make requests to the external socket

Now imagine i need to restart the application running the frontend +
Should i start by kiling the Workers then the devices and then the external
socket ?

Is there are options / best pratices to prevent message lost like :
"Close External Socket , " Drain All the Message Outbound / Inbound inside
the devices and let the workers close ?"

Just trying to avoid letting a remote connection hanging when the server is

Thanks for the help :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120229/12d433e2/attachment.htm>

More information about the zeromq-dev mailing list