On Jan 18, 2012, at 9:03 PM, Serg V. Gulko wrote:

> Hello! 
> 
> Thanks for response, Dimiter. 
> Thing is that same code also works for me perfectly. But once I add at least 
> one operation under data in consumer thread - boom, OUT OF MEMORY.
> I was expecting that HWM should help but I guess I still settings something 
> wrong.

Try setting a HWM on the SUB socket too. Perhaps the extra work you are doing 
(a completely superfluous malloc/memcpy/free) is delaying the SUB socket long 
enough that *its own queue* is blowing out.

Let us know how it goes.

cr

_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to