📣 An issue occured with the embedded container registry on October 25 2021, between 10:30 and 12:10 (UTC+2). Any persisting issues should be reported to CC-IN2P3 Support. 🐛

Commit d5e182c7 authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Remove possibility to make a server in ZQM_SUB mode. A server can only PUBLISH and cannot SUBSCRIBE

parent bedcdf93
Pipeline #98085 passed with stages
in 5 minutes and 20 seconds
......@@ -40,11 +40,6 @@ zmq::socket_t* pzmq_createServerSocket(zmq::context_t & context, int type, size_
socketAddressData << "tcp://*:" << port;
zmq::socket_t *socket = new zmq::socket_t(context, type);
socket->bind(socketAddressData.str());
if(type == ZMQ_SUB){
socket->setsockopt(ZMQ_LINGER, 0);
socket->setsockopt(ZMQ_SUBSCRIBE, "", 0);
socket->setsockopt(ZMQ_CONFLATE, 1);
}
return socket;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment