Closed skny5 closed 6 years ago
What version of squid/c-icap/squidclamav are you using? Have you tried latest squidclamav development code?
Yup - latest squidclamav from master branch, c-icap 0.4.2, squid 4.0.3.
So got past that error, I had initially kept KeepAlive -1, so the connection wasn't terminating once the data was sent. Now stuck on another error in that the message isn't being returned back to the client, instead seeing the following:
X-Squid-Error:ERR_ICAP_FAILURE 0 with a 500 Internal Error
<blockquote id="error">
<p><b>ICAP protocol error.</b></p>
</blockquote>
<p id="sysmsg">The system returned: <i>[No Error]</i></p>
<p>This means that some aspect of the ICAP communication failed.</p>
<p>Some possible problems are:</p>
<ul>
<li><p>The ICAP server is not reachable.</p></li>
<li><p>An Illegal response was received from the ICAP server.</p></li>
Just to mention virus files are being detected properly and being stopped and clean files are getting through, just need to figure out the message sent to put better error handling in place. Any suggestions?
Do you have the same error when using squid version 3? I'm not able to reproduce the issue using c-icap 0.4.2 and squid3. I've not tested squid4 until now, I will give it a try this weekend.
Please use latest code from github, commit b1b82e8 fix a buffer overflow in squidclamav_safebrowsing() that can be responsible of your issue. Please, let me know if that solves your issue.
Thank you will try
Same result
Hi, have setup SquidClamAV and C-ICAP, virus detection is working, however when there is an error in the debug logs when sending the template file, the redirect command does however go through successfully.
squidclamav_release_request_data: Thu Jan 7 04:09:38 2016, 18652/771090176, DEBUG Releasing request data. Thu Jan 7 04:10:38 2016, 18652/771090176, Error 10 while parsing headers :(0) Thu Jan 7 04:10:38 2016, 18652/771090176, Process request timeout or interrupted
Any ideas on how to fix the above?