[zeromq-dev] HWM default
sustrik at 250bpm.com
Sun May 8 10:21:30 CEST 2011
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.
More information about the zeromq-dev