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

Chuck Remes cremes.devlist at mac.com
Mon Mar 19 13:35:04 CET 2012

On Mar 19, 2012, at 6:10 AM, Antonio Teixeira wrote:

> Hello Again :)
> Dunno if i should open a new topic but here it goes.
> During a test i found a small problem :)
> The same client server model. Imagine using REQ the client asks something from the server.
> The message exits the client and arrives at the server while it's under processing ( on the server ) the client has a fatal error and closes itself.
> Now when server tries to respond to the client it will actually block waiting for the remote peer.

This probably only happens if the "server" is using a REP socket. Just use a ROUTER socket (was called XREP) instead and it will drop outgoing messages for peers that no longer exist.


More information about the zeromq-dev mailing list