[squid-users] Re: Adaptation::AllRules() after squid -k reconfigure

From: Mikio Kishi <mkishi_at_104.net>
Date: Sun, 2 May 2010 00:09:01 +0900

Hi,

> I think that Adaptation::AllRules() config data is broken after
> squid -k reconfigure.
> Please check it !
>
> Squid version: 3.1.1

I think that there are two problems.

> acl aclA src XXX.XXX.XXX.XXX/32
> acl aclB src YYY.YYY.YYY.YYY/32
> acl aclC src ZZZ.ZZZ.ZZZ.ZZZ/32
> icap_service icapA reqmod_precache bypass=1 icap://127.0.0.1:XXXX/reqmod
> icap_service icapB respmod_precache bypass=1 icap://127.0.0.1:XXXX/respmod
> adaptation_service_set req icapA
> adaptation_service_set resp icapB
> adaptation_access req allow aclA
> adaptation_access req allow aclB
> adaptation_access req allow aclC
> adaptation_access resp allow aclA
> adaptation_access resp allow aclB
> adaptation_access resp allow aclC

For example, if we do "squid -k reconfigure" in above adaptation
configuration,

 - The length of "*Adaptation::AllRules().items[0].acl" acl_access
   list becomes twice. The old list could not be cleared...

 - There is mismatches between
   print Adaptation::AllRules().items[0].acl.cfgline and
   print Adaptation::AllRules().items[0].acl.aclList._acl.cfgline
   I don't know why. The Adaptation::AllRules() list could be broken...

What do you think ?

Sincerely,

--
Mikio Kishi
Received on Sat May 01 2010 - 15:09:09 MDT

This archive was generated by hypermail 2.2.0 : Sun May 02 2010 - 12:00:03 MDT