开发者

How to set a zmq socket timeout

开发者 https://www.devze.com 2023-01-04 14:54 出处:网络
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 unt

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?


I would guess you can use the zmq_poll(3) with a timeout greater then zero.

0

精彩评论

暂无评论...
验证码 换一张
取 消