Re: Lessons learned from string-fix and consequences on StringNg design

From: Alex Rousskov <rousskov_at_measurement-factory.com>
Date: Fri, 13 Feb 2009 10:51:48 -0700

On 02/13/2009 10:31 AM, Kinkie wrote:
>> As for overflow checks, I would throw in grow() or equivalent if the
>> size gets too big. Adding debugging when the size exceeds some large
>> threshold is probably not needed because we can grep for that without an
>> explicit debug statement. Or did you want to add a level-1 warning to
>> the admin?
>>
> The latter. Say that a StringNg can be up to 2Gb big.
> I'd rather level-1 warn at .5Gb and throw at 2Gb than just throw at 1
> (but then things will have gone bad quite long before that).
If you want to warn, then warn and throw at the same time -- there is
little an admin can do after seeing a "we think Squid strings are
getting too large but we are not going to do anything at this point;
please check back later" warning. Not a big deal either way though.

Thanks,

Alex.
Received on Fri Feb 13 2009 - 17:51:54 MST

This archive was generated by hypermail 2.2.0 : Sat Feb 14 2009 - 12:00:03 MST