Sorry this was my mistake.
  I used int in setsockopt(ZMQ_HWM) while in zmq 2 it should be
uint64_t. Thus hwm did not worked as expected.
I think this should be mentioned in http://www.zeromq.org/docs:3-1-upgrade page.

2012/10/21 Pieter Hintjens <[email protected]>:
> On Sat, Oct 20, 2012 at 4:43 PM, Evgeny Turnaev <[email protected]> wrote:
>
>>   Does a free() function provided as fourth argument to
>> int zmq_msg_init_data (zmq_msg_t *msg, void *data, size_t size,
>> zmq_free_fn *ffn, void *hint);
>> get called when ZMQ_PUSH message gets discarded because of HWM on socket?
>
> It should, yes. If not, that's a bug.
>
> -Pieter
> _______________________________________________
> zeromq-dev mailing list
> [email protected]
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev



-- 
--------------------------------------------
Турнаев Евгений Викторович
+7 906 875 09 43
--------------------------------------------
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to