Commit 897023c3 authored by Ian Barber's avatar Ian Barber

Merge pull request #518 from hintjens/master

Fixed MAXMSGSIZE setsockopt, which I'd broken
parents ccf2b9b4 a85c9f45
...@@ -144,7 +144,7 @@ int zmq::options_t::setsockopt (int option_, const void *optval_, ...@@ -144,7 +144,7 @@ int zmq::options_t::setsockopt (int option_, const void *optval_,
case ZMQ_RECONNECT_IVL_MAX: case ZMQ_RECONNECT_IVL_MAX:
if (is_int && value >= 0) if (is_int && value >= 0)
reconnect_ivl_max = value; reconnect_ivl_max = value;
else else
valid = false; valid = false;
break; break;
...@@ -160,6 +160,7 @@ int zmq::options_t::setsockopt (int option_, const void *optval_, ...@@ -160,6 +160,7 @@ int zmq::options_t::setsockopt (int option_, const void *optval_,
maxmsgsize = *((int64_t *) optval_); maxmsgsize = *((int64_t *) optval_);
else else
valid = false; valid = false;
break;
case ZMQ_MULTICAST_HOPS: case ZMQ_MULTICAST_HOPS:
if (is_int && value > 0) if (is_int && value > 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment