Re: squid3 icap preview

From: Alex Rousskov <rousskov@dont-contact.us>
Date: Wed, 06 Dec 2006 08:15:22 -0700

On Tue, 2006-12-05 at 16:24 +0100, Gernot Tenchio wrote:

> Sometimes squid does not send a preview to the icap server even if
> requested. It seems to happen if squid doesn't know how large the
> response would be. Is this intended?

As far as I can see, if the expected body size is unknown, Squid will
send a zero-size preview. A comment in the code questions that logic.

I do not know why Squid sets preview size to zero in that case; it could
be an if-statement condition bug or just a leftover from earlier, less
capable code.

If you are willing to experiment, please try the attached patch. The
patch removes the code that sets preview size to zero when the body size
is not known. Please let me know whether the patch works for you.

Thank you,

Alex.

Received on Wed Dec 06 2006 - 08:16:24 MST

This archive was generated by hypermail pre-2.1.9 : Sat Dec 30 2006 - 12:00:04 MST