aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-01-25 16:40:03 -0800
committerRiccardo Spagni <ric@spagni.net>2018-01-25 16:40:03 -0800
commit5e211b41869a4584c427c5accf1d95d64f970ff2 (patch)
tree40a061329da41c3732ead85cad0fed9edb5401b2
parentMerge pull request #3015 (diff)
parentzmq: use older 3-arg version of setsockopt (diff)
downloadmonero-5e211b41869a4584c427c5accf1d95d64f970ff2.tar.xz
Merge pull request #3020
03ac3890 zmq: use older 3-arg version of setsockopt (stoffu)
-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());