mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-17 03:03:25 +02:00
Disable reconnection option
Add value -1 to the ZMQ_RECONNECT_IVL to disable the reconnection algorithm
This commit is contained in:
@@ -375,7 +375,8 @@ void zmq::session_base_t::detached ()
|
||||
}
|
||||
|
||||
// Reconnect.
|
||||
start_connecting (true);
|
||||
if (options.reconnect_ivl != -1)
|
||||
start_connecting (true);
|
||||
|
||||
// For subscriber sockets we hiccup the inbound pipe, which will cause
|
||||
// the socket object to resend all the subscriptions.
|
||||
|
Reference in New Issue
Block a user