Disable reconnection option

Add value -1 to the ZMQ_RECONNECT_IVL to disable the reconnection algorithm
This commit is contained in:
Emmanuel Taurel
2012-03-20 09:22:27 +01:00
parent 8665f9a0b6
commit 107581213c
4 changed files with 5 additions and 4 deletions

View File

@@ -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.