From 6a8be3c3c1c6e38e803b6a1f06514044ba85110b Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 16 Feb 2012 10:03:36 +0900 Subject: Subscription buffer in XSUB socket made elastic Signed-off-by: Martin Sustrik --- src/xsub.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/xsub.cpp b/src/xsub.cpp index edde39e..7797bdf 100644 --- a/src/xsub.cpp +++ b/src/xsub.cpp @@ -35,6 +35,9 @@ xs::xsub_t::xsub_t (class ctx_t *parent_, uint32_t tid_, int sid_) : // subscription commands are sent to the wire. options.linger = 0; + // Also, we want the subscription buffer to be elastic by default. + options.sndhwm = 0; + int rc = message.init (); errno_assert (rc == 0); } -- cgit v1.2.3