[zeromq-dev] Unreasonable behavior of a socket when connection can't be established. How to enable the blocking mode on a socket?
Yuri
yuri at rawbw.com
Fri Sep 30 07:06:03 CET 2022
On 9/28/22 07:20, Bill Torpey wrote:
>
> 1. You can set options on the socket to change ZMQ’s default
> reconnection algorithm:
>
> ZMQ_RECONNECT_STOP_CONN_REFUSED
> ZMQ_RECONNECT_STOP_HANDSHAKE_FAILED
> ZMQ_RECONNECT_STOP_AFTER_DISCONNECT
>
I tried to set the first option on the REQ socket:
> setsockopt(zmq.RECONNECT_STOP, 1) # zmq.RECONNECT_STOP_CONN_REFUSED
but it still doesn't fail on 'Connection Refused' event.
Yuri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20220930/ad0a76d2/attachment.htm>
More information about the zeromq-dev
mailing list