diff options
author | Thijs Terlouw <thijsterlouw@gmail.com> | 2011-01-26 07:01:06 +0100 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-01-26 07:01:06 +0100 |
commit | f7f1dfc86dd649edbd789a5d157d74721338c912 (patch) | |
tree | 4189c915385050b759eb2a2890adcba25885a476 /src/options.hpp | |
parent | 8e61a11b398c95d829f24c388737eb122405c97b (diff) |
ZMQ_RECONNECT_IVL_MAX socket option added
It allows for exponential back-off strategy when reconnecting.
Signed-off-by: Thijs Terlouw <thijsterlouw@gmail.com>
Diffstat (limited to 'src/options.hpp')
-rw-r--r-- | src/options.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/options.hpp b/src/options.hpp index e6df505..38c6982 100644 --- a/src/options.hpp +++ b/src/options.hpp @@ -59,8 +59,12 @@ namespace zmq // Linger time, in milliseconds. int linger; - // Interval between attempts to reconnect, in milliseconds. + // Minimum interval between attempts to reconnect, in milliseconds. + // Default 100ms int reconnect_ivl; + // Maximum interval between attempts to reconnect, in milliseconds. + // Default 0 (unused) + int reconnect_ivl_max; // Maximum backlog for pending connections. int backlog; |