summaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/zmq.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/zmq.h b/include/zmq.h
index 997595b..a773f45 100644
--- a/include/zmq.h
+++ b/include/zmq.h
@@ -202,6 +202,7 @@ ZMQ_EXPORT int zmq_term (void *context);
#define ZMQ_LINGER 17
#define ZMQ_RECONNECT_IVL 18
#define ZMQ_BACKLOG 19
+#define ZMQ_RECOVERY_IVL_MSEC 20 /* opt. recovery time, reconcile in 3.x */
/* Send/recv options. */
#define ZMQ_NOBLOCK 1