Commit 1fe82ae0 authored by Richard Newton's avatar Richard Newton

Merge pull request #866 from hintjens/master

Fixed issue #865 - validation on ZMQ_TCP_KEEPALIVE
parents 365b7b8d bb81b1e3
......@@ -206,7 +206,7 @@ int zmq::options_t::setsockopt (int option_, const void *optval_,
break;
case ZMQ_TCP_KEEPALIVE:
if (is_int && (value >= -1 || value <= 1)) {
if (is_int && (value == -1 || value == 0 || value == 1)) {
tcp_keepalive = value;
return 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