diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-01-25 16:40:03 -0800 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-01-25 16:40:03 -0800 |
commit | 5e211b41869a4584c427c5accf1d95d64f970ff2 (patch) | |
tree | 40a061329da41c3732ead85cad0fed9edb5401b2 /src | |
parent | Merge pull request #3015 (diff) | |
parent | zmq: use older 3-arg version of setsockopt (diff) | |
download | monero-5e211b41869a4584c427c5accf1d95d64f970ff2.tar.xz |
Merge pull request #3020
03ac3890 zmq: use older 3-arg version of setsockopt (stoffu)
Diffstat (limited to 'src')
-rw-r--r-- | src/rpc/zmq_server.cpp | 2 |
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()); |