diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2012-02-16 10:03:36 +0900 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-02-16 10:03:36 +0900 |
commit | 6a8be3c3c1c6e38e803b6a1f06514044ba85110b (patch) | |
tree | ad764400d3706d97f3e0cdcc3b8e68752576f6f8 /src | |
parent | cbe7ecfe9f5bda7b3f4a09c5907931ca2e9fc5c6 (diff) |
Subscription buffer in XSUB socket made elastic
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/xsub.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |