aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/zmq_server.cpp
diff options
context:
space:
mode:
authorstoffu <stoffu@protonmail.ch>2017-12-28 13:15:49 +0900
committerstoffu <stoffu@protonmail.ch>2017-12-28 13:15:49 +0900
commit03ac389022a566b6a955e1ea4fac0634c31b1a0e (patch)
treed81fde8fe37d2cb9f995c1a806c573023571fab9 /src/rpc/zmq_server.cpp
parentMerge pull request #2952 (diff)
downloadmonero-03ac389022a566b6a955e1ea4fac0634c31b1a0e.tar.xz
zmq: use older 3-arg version of setsockopt
Diffstat (limited to 'src/rpc/zmq_server.cpp')
-rw-r--r--src/rpc/zmq_server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/zmq_server.cpp b/src/rpc/zmq_server.cpp
index afdff2328..6f06f4497 100644
--- a/src/rpc/zmq_server.cpp
+++ b/src/rpc/zmq_server.cpp
@@ -102,7 +102,7 @@ bool ZmqServer::addTCPSocket(std::string address, std::string port)
rep_socket.reset(new zmq::socket_t(context, ZMQ_REP));
- rep_socket->setsockopt(ZMQ_RCVTIMEO, DEFAULT_RPC_RECV_TIMEOUT_MS);
+ rep_socket->setsockopt(ZMQ_RCVTIMEO, &DEFAULT_RPC_RECV_TIMEOUT_MS, sizeof(DEFAULT_RPC_RECV_TIMEOUT_MS));
std::string bind_address = addr_prefix + address + std::string(":") + port;
rep_socket->bind(bind_address.c_str());