Hi Zhanglei,
I have the same question with you.
I'm using 3.2.3. PUB ZMQ_SNDHWM doesn't work.
I debuged this issue with gdb, and found that ZeroMQ disregards
"zmq_setsockopt(publisher, ZMQ_SNDHWM, &sndhwm, sizeof(int));".
zmq::pipe_t::hwm
is still 1000.
- Zhichang
2014-06-12 11:37 GMT+08:00 zhanglei-ds4(张雷.信息技术中心.搜索组) <
[email protected]>:
>
> Dear Mr,
> I come from china. and we have used the latest zeromq(4.0.4) in our
> project . but there are some questions coming . that is :
> a lot of messages lose in PUB-SUB . so I have to use older version
> zeromq(2.2.0) ,and I set ZMQ_HWM and ZMQ_SWAP , the message is no longer
> lost in PUB_SUB.
> I have two question:
> 1. since the version 3.2.0 , zeromq can not set ZMQ_SWAP ,why are you
> cancle ZMQ_SAWP ?
> 2. if I use latest zeromq , how to avoid lose message in PUB-SUB ? I set
> ZMQ_HWM in PUB-SUB , but message still lose , how to do?
>
> thanks.
> ------------------------------
>
> _______________________________________________
> 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