[zeromq-dev] CZMQ 3.0.0rc1: Unexpected behavior with pub/sub and new zstr API

Michaël Melchiore rohel01 at gmail.com
Thu Oct 23 13:46:47 CEST 2014

>From my testting, it seems that subscriptions can only be added before
first messages are sent/received between the involded sockets.

Yet, subscription removals can occur at any time and be taken into account.

2014-10-23 13:17 GMT+02:00 Michaël Melchiore <rohel01 at gmail.com>:

> Hello,
> I am using CZMQ 3.0.0rc1 with libzmq 4.1.0rc1 on a CentOS 6.4 box.
> In te following gist
> <https://gist.github.com/anonymous/2bf15590842dbc9aa771>, I have written
> a quick and dirty program to experiment with some new API I discovered in
> There are some behaviors I cannot explain :
> On line 17, if I try to subscribe directly to "HELLO" in the zsock_new_sub
> call (commenting line 20), my subscription is never taken into account.
> On line 46, I use zsock_set_subscribe to register with "BYE" messages, but
> I do not receive them.
> What am I doing wrong ?
> Kind regards,
> Michaël
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20141023/809665b2/attachment.htm>

More information about the zeromq-dev mailing list