Re: helper program

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 08 Jan 2014 09:02:24 +1300

On 2014-01-08 08:52, Amos Jeffries wrote:
> On 2014-01-08 07:19, Francesco Chemolli wrote:
>> On 07 Jan 2014, at 18:24, cll_kfoury wrote:
>>
>>> Hi all,
>>>
>>> I'm working with squid 2.7 with perl helper and every things work
>>> fine
>>> but try to work with squid 3.4.3 (beta version) and enable the helper
>>> that
>>> already worked with 2.7, but it doesn't work, try another one (
>>> simplest
>>> perl helper) but the same error result.
>>
>>
>>> cache.log error
>>> ERROR: storeID helper returned invalid result code. Wrong helper?
>>> {result=Unknown, other: "SUCK"}
>>>
>>> any idea why all of the perl helpers didn't work :(
>>
>> .. is SUCK a valid response for a StoreID helper?
>>
>> I'm not an expert, but it may be that only OK, ERR and BH are
>> legitimate directives back from helpers.
>> There should be a wiki feature page about helper protocol, I recommend
>> to check that out first.
>>
>> Kinkie
>
> FTR:
> http://wiki.squid-cache.org/Features/StoreID#How_do_I_make_my_own_helper.3F
>

Also, going back to the original post. The helper has broken concurrency
handling breaking successful regex matching.

See how it is storing a concurrency channel ID ( $x = $X[0] ) and
printing it out on the success results but is not configured in the
squid.conf with concurrency, and the fail ("SUCK") result is not sending
$x back to Squid.

Add to squid.conf the setting concurrency=2

Change the SUCK output line to:
  print $x ." ERR\n";

Amos
Received on Tue Jan 07 2014 - 20:02:29 MST

This archive was generated by hypermail 2.2.0 : Wed Jan 08 2014 - 12:00:11 MST