Hi Diego, Please try again with the recent 4.0.4 release and/or GitHub master. There was an issue LIBZMQ-584 related to lost subscriptions that might explain your case. That's fixed in 4.0.4 and on libzmq master.
-Pieter On Tue, Mar 11, 2014 at 1:44 PM, Diego Fons <[email protected]> wrote: > Hi, > > I'm facing a strange behavior in a PUB/SUB pattern. I've modified the > psenvpub/psenvsub examples in order to publish different types of messages > so the subscriber can choose. > > The publications are of type "A", "B" and "C". > The subscriber subscribes to to publications "A" and "C". > Run the programs and everything goes fine. > Restart the publisher and now the subscriber only gets messages of type "C" > (the "A" subscription was lost?). > > If the subscriber subscribes to messages "A", "B" and "C", the situation is > the same, after publisher restart only messages of type "C" are received (It > seems that only the last subscription is kept). > > Well, I don't known if it is a mistake in my code or something else. I'm > attaching the codes, but the are pretty the same as in the examples. > BTW, I'm building my examples with ZMQ v4.0.3. > > Thanks in advance. > > Best regards. > > -- > Diego Andrés Fons > Intraway Corp. > Solution Developer > AR Office: +54 (11) 6040 4000 > US Office: +1 (516) 620 3890 > Email: [email protected] > > Visit our website at http://www.intraway.com > Proud to be an ISO 9001:2008 certified company > > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
