0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-29 00:32:34 +08:00

Merge pull request #866 from hintjens/master

Fixed issue #865 - validation on ZMQ_TCP_KEEPALIVE
This commit is contained in:
Richard Newton 2014-01-31 03:14:08 -08:00
commit 1fe82ae0a4

View File

@ -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;
}