Re: [squid-users] Keep-Alive header not being displayed

From: Alex Rousskov <rousskov_at_measurement-factory.com>
Date: Thu, 11 Sep 2008 20:37:05 -0600

On Thu, 2008-09-11 at 16:42 -0700, JL wrote:
> In my headers, the "HTTP_KEEP_ALIVE = 300" is not displaying and I'm
> not sure why. I have the following header_access rules:
>
> header_access X-Forwarded-For deny all
> header_access Proxy-Connection deny all
> header_access Via deny all
> header_access All allow all
>
> With these rules I get the following headers:
>
> HTTP_ACCEPT = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
> application/x-shockwave-flash, application/vnd.ms-excel,
> application/vnd.ms-powerpoint, application/msword, */*
> HTTP_ACCEPT_ENCODING = gzip, deflate
> HTTP_ACCEPT_LANGUAGE = en-us
> HTTP_CONNECTION = keep-alive
> HTTP_COOKIE = __utma=131785806.1971945049.1220944678.1221168849.1221173272.5;
> __utmz=131785806.1220944678.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none);
> __utmb=131785806; __utmc=131785806
> HTTP_HOST = www.proxyjudge.biz
> HTTP_REFERER = http://proxyjudge.biz/
> HTTP_UA_CPU = x86
> HTTP_USER_AGENT = Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1;
> .NET CLR 1.1.4322; .NET CLR 2.0.50727)
> REMOTE_ADDR = XXX.XXX.XXX.XXX
> REMOTE_PORT = 51600
> REQUEST_METHOD = GET
> REQUEST_URI = /az.php
>
> I have even tried removing all the header_access rules except for
> header_access All allow all. However, HTTP_KEEP_ALIVE = 300 does not
> display.
>
> I am using Squid Version 2.6.STABLE6 on Red Hat Enterprise Linux 5.

Do you see "Keep-Alive: 300" header in the packets that are sent to
Squid? Do you see "Keep-Alive: 300" header in the packets that Squid
sends to the origin server? If yes, perhaps Apache httpd (or equivalent)
is "translating" your Keep-Alive header into the Connection header, with
a value of Keep-Alive.

What is the purpose of sending that Keep-Alive header? Can you send a
custom header like X-Alive?

HTH,

Alex.
Received on Fri Sep 12 2008 - 02:38:34 MDT

This archive was generated by hypermail 2.2.0 : Fri Sep 12 2008 - 12:00:03 MDT