[zeromq-dev] recv in REQ client blocks forever if XREP server dies

Martin Sustrik sustrik at 250bpm.com
Sun Dec 5 11:16:54 CET 2010


On 12/05/2010 10:37 AM, Troy Gutjahr wrote:
> OK, I tried to do this. Now when my REP client gets a timeout from
> zmq::poll when waiting for a response from the dead XREP server process,
> it tries to send another message to the same socket, which has a
> restarted XREP server process bound to the other end. The send function
> fails with errno = EFSM. What should the client do to reset the socket
> into a functional state?

Use XREQ instead of REQ.

Martin



More information about the zeromq-dev mailing list