Failure recovery, reconfiguration/restart during rebuild (Was: How to ignore query terms for store key?)

2010-09-08 Thread Guy Bashkansky
Thanks, storeurl_rewrite works.  Of course, I shouldn't have chomped the newline in the first place :) Now, I'm trying to investigate failure and recovery properties of Squid 2.7 STABLE9 relative to Squid 2.4: Specifically, Squid 2.4 cbdata.c memory management sometimes crashed under high load, a

Re: How to ignore query terms for store key?

2010-09-08 Thread Henrik Nordström
tis 2010-09-07 klockan 18:59 -0700 skrev Guy Bashkansky: > /usr/local/squid/bin/strip-query.pl > #!/usr/local/bin/perl -Tw > $| = 1; while(<>) { chomp; s/\?\S*//; print; } ### my strip query test If you chomp the newline then you need to add it back when printing the result. Regards Henr

Re: How to ignore query terms for store key?

2010-09-07 Thread Guy Bashkansky
Thanks, storeurl_rewrite in Squid 2.7 looks like the right solution. But when I try to use it to strip query, Squid does not respond: /usr/local/squid/etc/squid.conf storeurl_access allow all # just for the test, will narrow down later storeurl_rewrite_program /usr/local/squid/bin/strip-q

Re: How to ignore query terms for store key?

2010-09-07 Thread Henrik Nordström
fre 2010-09-03 klockan 18:03 -0700 skrev Guy Bashkansky: > Is there a way to ignore URI query terms when forming store keys? > Maybe some rule or extension? http://wiki.squid-cache.org/Features/StoreUrlRewrite needs to be implemented for Squid-3 as well.. currently a Squid-2 only feature. Regard

How to ignore query terms for store key?

2010-09-07 Thread Guy Bashkansky
Is there a way to ignore URI query terms when forming store keys? Maybe some rule or extension? In the Squid code it could look something like: { char *p = strchr(uri, '?'); if (p) *p = '\0'; } But the only code like this deals with strip_query_terms. This rule only affects logging, not storing.