<div dir="ltr">Hi,<br><div><br></div><div>We are sending an encapsulated HTTP 307 redirect webpage header whenever a Virus is found and stop sending any other data after that, but squid complains about ICAP failure when we do that:</div><div>Adaptation::Icap::Xaction::noteCommRead threw exception: corrupted chunk size<br></div><div><br></div><div>We are not sending an ICAP header at this point because we already told Squid ICAP 200 OK header and begun a body transaction, we send some chunks back to the client for progress and hold the last part for scanning.</div><div><br></div><div>Ideally, we would like to just send our 307 to Squid and not having it count as a failure.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 26, 2019 at 3:44 PM Alex Rousskov <<a href="mailto:rousskov@measurement-factory.com">rousskov@measurement-factory.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 11/26/19 10:15 AM, Felipe Arturo Polanco wrote:<br>
<br>
> While we can successfully scan our files and do content adaptation, we<br>
> have been struggling to find a way to close the ICAP transaction before<br>
> passing the whole body back to squid and at the same time avoid squid<br>
> marking one icap failure.<br>
<br>
Squid needs a valid ICAP response. The right ICAP response status code<br>
depends on what you want Squid to do after receiving that response. You<br>
have mentioned what you do _not_ want Squid to do (i.e. increase the<br>
failure count), but that still leaves a lot of options.<br>
<br>
<br>
> This is for an ICAP server that does Virus scanning and if virus found,<br>
> the body is not sent back.<br>
<br>
What do you want Squid to do when the ICAP service finds a virus? For<br>
example, what message do you want Squid to send to the next HTTP hop?<br>
<br>
Alex.<br>
</blockquote></div>