[zeromq-dev] java server (DEALER) + worker / c client (REQ)

Chuck Remes lists at chuckremes.com
Thu Sep 27 18:51:11 CEST 2012

On Sep 27, 2012, at 11:42 AM, Davis Ford wrote:

> One follow up question, if I try to change the semantics so the client sends asynchronously, it doesn't seem to work.  
> [snip]
> When it gets to the async loop, the program outputs:
> Asynchronous round-trip test...
> zmq error: 	: Unknown error: 156384763
> zstr_send (line 115) returned errno Unknown error: 156384763

That isn't an unknown error, that is EFSM. You can figure that out by looking at the zmq.h and looking at the ZMQ_HAUSNUMERO constant. Do a little math and it is equal to EFSM.

The reason you are getting this is because you are not obeying the restrictions of a REQ socket. For every send, there must be a matching recv. If you send twice in a row (or recv twice in a row) you'll get the state machine error.

Please read the man page and guide for more help on REQ sockets and their restrictions.


More information about the zeromq-dev mailing list