[squid-users] note macro - %{policy_}note passes old values along with new value

Alex Rousskov rousskov at measurement-factory.com
Fri Dec 14 23:57:38 UTC 2018


On 12/14/18 4:26 PM, Amish wrote:
> On 14/12/18 10:37 pm, Alex Rousskov wrote:
>> On 12/14/18 9:26 AM, Amish wrote:

>>> How to pass only the latest value with note macro?

>> With modern Squids, you should not do anything special to accomplish
>> that. Only the latest annotation value should be preserved. If that is
>> not happening in your tests, consider filing a bug report, especially if
>> you can reproduce with Squid v4+.

>> https://github.com/squid-cache/squid/commit/457857fe7cf51037cd9e54e86c0985391d7ea594

> I have not set any clt_conn_tag=TAG.
> 
> Does this feature of latest note value work only if I set clt_conn_tag=TAG?

No, the two are pretty much unrelated. The always-erase-the-old-value
fix (not really a feature!) in the above-referenced commit should apply
to all annotations, not just client connection annotations. IIRC, our
connection annotation work simply exposed the fact that we screwed up
with annotation updates earlier, and we fixed that bug in the same project.

Alex.


More information about the squid-users mailing list