summaryrefslogtreecommitdiff
path: root/src/zmq_connecter.hpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-02-17 10:33:38 +0100
committerMartin Sustrik <sustrik@250bpm.com>2011-02-17 10:33:38 +0100
commit28f3e87fc6c8c5c7046234bf9a08ae62f26d7f3a (patch)
treee926ac76c70ca42d208977c23f7d9057a0b1315a /src/zmq_connecter.hpp
parentfbe5d859f461b0deaa6083fdee077e01e9b47b91 (diff)
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 <sustrik@250bpm.com>
Diffstat (limited to 'src/zmq_connecter.hpp')
-rw-r--r--src/zmq_connecter.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zmq_connecter.hpp b/src/zmq_connecter.hpp
index ef2cd1a..af7c286 100644
--- a/src/zmq_connecter.hpp
+++ b/src/zmq_connecter.hpp
@@ -36,7 +36,7 @@ namespace zmq
// connection process.
zmq_connecter_t (class io_thread_t *io_thread_,
class session_t *session_, const options_t &options_,
- const char *protocol_, const char *address_);
+ const char *protocol_, const char *address_, bool delay_);
~zmq_connecter_t ();
private: