On 05/08/2011 10:15 AM, Tobias Hintze wrote: >> I though of changing the default value for HWM to say 1000 in 0MQ/3.0. >> >> The rationale being that unlimited buffer is a stability threat. In >> other words, default socket when overloaded or DoS'ed will run out of >> memory and crash the application rather than behave decently. > > a HWM measured in the amount of allocated socket-buffer would make > the choice of such upper default limit easier, would it?
Agreed. However, doing so would require non-trivial changes to the codebase. > "1000" is pretty arbitrary when messages sizes can differ a lot. Yes. But still better than deterministically running out of memory I guess. Martin _______________________________________________ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev