[zeromq-dev] Problems with pub/sub and ZMQ_CONFLATE flag

Matthias Kluwe mkluwe at gmail.com
Wed Aug 20 19:37:48 CEST 2014


Hi!

2014-08-20 11:55 GMT+02:00 Konz, Barbara <Barbara.Konz at ipk.fraunhofer.de>:

> a few days ago I started with zmq and so far most tests I did turned out
> really fine.
>
> I need a pub/sub environment where my subscribers only receive the most
> recent message. Therefore, I set ZMQ_CONLFATE with option_len = 1

Hmm, you really did set option_len = 1?

The call to zmq_setsockopt expects option_len to be "the size of the
option value in bytes". The option value type of ZMQ_CONFLATE is int,
so 1 is (most probably) not correct...

Regards,
Matthias



More information about the zeromq-dev mailing list