Re: [squid-users] Site-specific "Excess data"?

From: Chris Robertson <crobertson_at_gci.net>
Date: Wed, 13 Aug 2008 13:56:48 -0800

Steve Snyder wrote:
> I've got a rash of "Excess data" entries in my cache.log (Squid 2.7S4,
> on a CentOS v5.2 system).
>
> I was about to report this as a bug in Squid, but the fact that these
> are all from the same site gives me pause. Is it possible for a web
> server to be mis-configured such that I would get entries like those
> below?
>
> Thanks
>
> --------------------------------------
>
> 2008/08/12 19:28:21| httpReadReply: Excess data from "GET http://www.myhomeideas.com/myhome/static/i/version2/bkMainNav.gif"

It's the site:

    -bash-3.00$ wget -S -O bkMainNav.gif
    http://www.myhomeideas.com/myhome/static/i/version2/bkMainNav.gif
    --13:46:09--
    http://www.myhomeideas.com/myhome/static/i/version2/bkMainNav.gif
               => `bkMainNav.gif'
    Resolving www.myhomeideas.com... 205.188.238.109
    Connecting to www.myhomeideas.com[205.188.238.109]:80... connected.
    HTTP request sent, awaiting response...
     1 HTTP/1.1 301 Moved Permanently
     2 Server: Undisclosed-Webserver/0.1
     3 Date: Wed, 13 Aug 2008 21:46:08 GMT
     4 P3P: CP='PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA PRE CUR ADMa
    DEVa TAIo PSAo PSDo IVAo IVDo CONo TELo OTPi OUR UNRo PUBi OTRo IND
    DSP CAO COR'
     5 Last-modified: Wed, 13 Aug 2008 21:46:08 GMT
     6 Location: http://i.timeinc.net/myhome/static/i/version2/bkMainNav.gif
     7 Content-type: text/html
     8 Content-length: 0
     9 Connection: close
    Location:
    http://i.timeinc.net/myhome/static/i/version2/bkMainNav.gif [following]

Note the header line 8. RFC 3875 states in part...

    The server MUST set this meta-variable if and only if the request is
    accompanied by a message-body entity. The CONTENT_LENGTH value must
    reflect the length of the message-body after the server has removed
    any transfer-codings or content-codings.

Since the 301 response doesn't have a message body, the Content_Length
header should not be set.

Chris
Received on Wed Aug 13 2008 - 21:56:55 MDT

This archive was generated by hypermail 2.2.0 : Thu Aug 14 2008 - 12:00:03 MDT