From ec051665451b525d68b1cb3eb9dce951e7271e8b Mon Sep 17 00:00:00 2001 From: Bill Torpey Date: Fri, 29 Dec 2017 14:36:59 -0500 Subject: [PATCH] prevent duplicate connections from PUB sockets also (see https://github.com/zeromq/libzmq/issues/788) --- src/socket_base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socket_base.cpp b/src/socket_base.cpp index f18e6e1e..a0be9eb8 100644 --- a/src/socket_base.cpp +++ b/src/socket_base.cpp @@ -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_);