From 14b112301e62af5115ab870d97ae448c2e3deddb Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Tue, 15 Dec 2009 13:58:21 +0100 Subject: handle error during connecting by eventual reconnection --- src/zmq_connecter.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/zmq_connecter.cpp b/src/zmq_connecter.cpp index 657622a..8d5c59f 100644 --- a/src/zmq_connecter.cpp +++ b/src/zmq_connecter.cpp @@ -120,6 +120,8 @@ void zmq::zmq_connecter_t::start_connecting () return; } - // TODO: Handle the error condition by eventual reconnect. - zmq_assert (false); + // Handle any other error condition by eventual reconnect. + tcp_connecter.close (); + wait = true; + add_timer (); } -- cgit v1.2.3