FAQ

[zeromq-dev] publish/subscribe hangs in libzmq

Ian Barber
Dec 30, 2011 at 9:06 pm

On Fri, Dec 30, 2011 at 2:15 PM, Toralf Wittner wrote:
Running against 0MQ 2.1.11 yields the expected result:

$ g++ -g -ggdb -O0 -Wall -o testcase-cpp -I/opt/zeromq2-1/include/
-L/opt/zeromq2-1/lib testcase.cc -lzmq
$ ./testcase-cpp
hello

Compiling and running against libzmq (current HEAD
6f32361fea61619fec94348de693a9e3ff8981e0) will not terminate. Here the
stacktraces:

$ g++ -g -ggdb -O0 -Wall -o testcase-cpp -I/opt/zeromq3-1/include/
-L/opt/zeromq3-1/lib testcase.cc -lzmqI did not look too closely but it
seems that no subscriptions match in
zmq::xpub_t::xsend, i.e. no pipe is marked as matching and
dist.send_to_matching will not send out anything (with
dist.send_to_all this program works just like in 0MQ 2.1.11).

T.
Toralf - this is a known issues, take a look at
https://zeromq.jira.com/browse/LIBZMQ-248 /
https://zeromq.jira.com/browse/LIBZMQ-270

248 has a workaround (that may be of use).

Ian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.zeromq.org/pipermail/zeromq-dev/attachments/20111230/9532136d/attachment.htm
reply

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 3 | next ›