Commit ec051665 authored by Bill Torpey's avatar Bill Torpey

prevent duplicate connections from PUB sockets also (see…

prevent duplicate connections from PUB sockets also (see https://github.com/zeromq/libzmq/issues/788)
parent 4621e588
......@@ -823,7 +823,7 @@ int zmq::socket_base_t::connect (const char *addr_)
return 0;
}
bool is_single_connect = (options.type == ZMQ_DEALER ||
options.type == ZMQ_SUB ||
options.type == ZMQ_SUB || options.type == ZMQ_PUB ||
options.type == ZMQ_REQ);
if (unlikely (is_single_connect)) {
const endpoints_t::iterator it = endpoints.find (addr_);
......
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