mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-29 12:18:04 +01:00
Update options.cpp
Fixed ZMQ_TCP_RECV_BUFFER set case.
This commit is contained in:
@@ -285,7 +285,7 @@ int zmq::options_t::setsockopt (int option_, const void *optval_,
|
||||
|
||||
case ZMQ_TCP_RECV_BUFFER:
|
||||
if (is_int && (value >= 0 && value <= 10) ) {
|
||||
tcp_send_buffer_size = static_cast<int>(std::pow(2, value)) * 1024;
|
||||
tcp_recv_buffer_size = static_cast<int>(std::pow(2, value)) * 1024;
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user