[zeromq-dev] ZMQ::SocketError: Operation cannot be accomplished in current state

Sean Grove sean at bushi.do
Mon Apr 11 08:51:46 CEST 2011


I'm using ZeroMQ 2.0.11, and the ruby ffi-rzmq (0.7.2) bindings, and I seem
to run into this. The code in question is a REQ/REP pair running in separate
processes, and everything works fine the first time through. The second
time, I get the above error.

In the REQ side, there is a process fork, however, the child process never
does anything with zmq. Even so, I have tried both with and without an
additional ZMQ::Context.new(1) in the child process, to no avail.

The REP side seems to run with no issues however.

I'd love to better understand what state the socket is in that it's dying
here - how can I go about fixing this?

Thank you!

All the best,
Sean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110410/031ffda8/attachment.htm>


More information about the zeromq-dev mailing list