Question
I've got client and server applications using zmq in the ZMQ_REQ context. What I'm experiencing is that when the server component goes down or is unavailable, the client will wait until it is available to send its message. Is there a way to set a max wait time or timeout at the client level?
Solution
I would guess you can use the zmq_poll(3)
with a timeout greater then zero.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow