Re: [squid-users] Check for size of webpage

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 13 Jul 2010 05:10:07 +1200

Rene Wijninga wrote:
> Hi,
>
> We are using Squid as reverse proxy, works like a breezz.
> We recently implemented Squid also as reverse proxy for our Citrix
> environment for loadbalancing our Provisioning servers. Works perfectly, but...
>
> Sometimes the XML file that is being send from the provisioning servers has
> a length of zero bytes and is corrupt. This has nothing to do with Squid,
> when we connect to the provisioning servers directly, we get the same result.
>
> What I would like to do, is have Squid inspect the length of the file. Now
> my three questions are:
>
> 1) can Squid inspect the length of the xml page?

Squid already verifies the Content-Length: header matches the body size.
There is nothing else that can be done.

> 2) can Squid inspect the xml page for certain content?

No. Though eCAP/ICAP plugins can.

> 3) can Squid loadbalance with detection of non responsive servers or the give back an xml file with length 0?

non-responsive; yes.
sending zero-length files: No. zero is normally a valid file length.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.5
Received on Mon Jul 12 2010 - 17:10:32 MDT

This archive was generated by hypermail 2.2.0 : Mon Jul 12 2010 - 12:00:04 MDT