[zeromq-dev] Problem with durapub2 example

Ian Barber ian.barber at gmail.com
Wed Jul 27 13:12:23 CEST 2011


On Wed, Jul 27, 2011 at 12:03 PM, Tonis Xie <tonis.xie at gmail.com> wrote:

> I changed the "sleep(1)" in durapub2.c to "usleep(10)", make the loop run
> infinitely, start durapub2 and durasub, ctrl-c durasub, and I am seeing that
> the allocated memory of durapub2 keep raising just like never hitting a
> limit at all! However, I set the HWM to only 5.
>

Just to check with the changes, is the call to setsockopt with the HWM made
before the bind() call, or after?

Ian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110727/8e1b16ed/attachment.htm>


More information about the zeromq-dev mailing list