[zeromq-dev] HWM default
Joshua Foster
jhawk28 at gmail.com
Sun May 8 17:30:05 CEST 2011
I would prefer that the HWM stay as the default. The application needs to be built with the HWM in mind. If they don't explicitly set the value, they are probably not considering it. There is also the challenge of knowing the proper size that the HWM needs to be set based on the size of the messages. I think 0MQ has the responsibility of not crashing/dying from errors or too many connections. I think its the application's responsibility to not crash/die from too much data.
Joshua
On May 8, 2011, at 2:15 AM, Martin Sustrik wrote:
> Hi all,
>
> 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.
>
> So, I think, we should offer stable behaviour as default and leave it to
> user to opt out if infinite buffer is really what he wants.
>
> Martin
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
More information about the zeromq-dev
mailing list