From 8d962b4ac95f6f68dec2d341ff0abe87e15703db Mon Sep 17 00:00:00 2001 From: "Robert G. Jakabosky" Date: Mon, 31 Dec 2012 16:27:36 -0800 Subject: [PATCH] Set HWM option to zero to override new default in zeromq 3.x --- perf/remote_thr.lua | 2 ++ perf/thread_thr.lua | 2 ++ 2 files changed, 4 insertions(+) diff --git a/perf/remote_thr.lua b/perf/remote_thr.lua index e3146ce..5890508 100644 --- a/perf/remote_thr.lua +++ b/perf/remote_thr.lua @@ -31,6 +31,8 @@ local zmq = require"zmq" local ctx = zmq.init(1) local s = ctx:socket(zmq.PUB) +-- for ZeroMQ 3.x need to change HWM option. +s:set_hwm(0) s:connect(connect_to) zmq.sleep(1) diff --git a/perf/thread_thr.lua b/perf/thread_thr.lua index 7b9183a..d3958e8 100644 --- a/perf/thread_thr.lua +++ b/perf/thread_thr.lua @@ -38,6 +38,8 @@ local child_code = [[ local ctx = zthreads.get_parent_ctx() local s = ctx:socket(zmq.PUB) + -- for ZeroMQ 3.x need to change HWM option. + s:set_hwm(0) s:connect(connect_to) local data = ("0"):rep(message_size)