summaryrefslogtreecommitdiff
path: root/src/options.hpp
diff options
context:
space:
mode:
authorBob Beaty <rbeaty@peak6.com>2010-12-09 21:42:58 +0100
committerMartin Sustrik <sustrik@250bpm.com>2010-12-09 21:42:58 +0100
commitfcfad5682ed7a7f5108853d2a7039aedfd9a9ac2 (patch)
tree08fa82d832d06899058a386a8a2dab263f64a5ba /src/options.hpp
parent1d81d2f1d4549c2cd0999c9544b059c29706f260 (diff)
Added Recovery Interval in Milliseconds
For very high-speed message systems, the memory used for recovery can get to be very large. The corrent limitation on that reduction is the ZMQ_RECOVERY_IVL of 1 sec. I added in an additional option ZMQ_RECOVERY_IVL_MSEC, which is the Recovery Interval in milliseconds. If used, this will override the previous one, and allow you to set a sub-second recovery interval. If not set, the default behavior is to use ZMQ_RECOVERY_IVL. Signed-off-by: Bob Beaty <rbeaty@peak6.com>
Diffstat (limited to 'src/options.hpp')
-rw-r--r--src/options.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/options.hpp b/src/options.hpp
index 2c6f65d..e6df505 100644
--- a/src/options.hpp
+++ b/src/options.hpp
@@ -44,6 +44,8 @@ namespace zmq
// Reliability time interval [s]. Default 10s.
uint32_t recovery_ivl;
+ // Reliability time interval [ms]. Default -1 = not used.
+ int32_t recovery_ivl_msec;
// Enable multicast loopback. Default disabled (false).
bool use_multicast_loop;