From 28f3e87fc6c8c5c7046234bf9a08ae62f26d7f3a Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 17 Feb 2011 10:33:38 +0100 Subject: Add delay before reconnecting So far ZMQ_RECONNECT_IVL delay was used only when TCP connect failed. Now it is used even if connect succeeds and the peer closes the connection afterwards. Signed-off-by: Martin Sustrik --- src/connect_session.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/connect_session.hpp') diff --git a/src/connect_session.hpp b/src/connect_session.hpp index c93b70c..0c3c90d 100644 --- a/src/connect_session.hpp +++ b/src/connect_session.hpp @@ -46,7 +46,7 @@ namespace zmq void detached (); // Start the connection process. - void start_connecting (); + void start_connecting (bool wait_); // Command handlers. void process_plug (); -- cgit v1.2.3