[squid-dev] [RFC] deprecatign self_destruct()

Amos Jeffries squid3 at treenet.co.nz
Mon Aug 24 11:03:42 UTC 2015


See <http://bugs.squid-cache.org/show_bug.cgi?id=3693>.

Its behaviour turns out to be rather nasty, despite a the use it has.
ConfigParser class provides a destruct() method which correctly outputs
the Bungled lines when actually relevant during the parse stage.

I belive all uses of self_destruct() during post-configure validation
checks are better written as fatal() or fatalf() with an error
description by the caller.

So am calling for self_destruct() to start being avoided in all new
patches and we work towards removing it where code is changed.

 Any objections?

Amos


More information about the squid-dev mailing list