On Mon, 19 Jan 2004, Mike Mitchell wrote:

> I've just installed the squid-2.5.STABLE4-20040119 snapshot and now I'm flooded with 
> "Impossible keep-alive header" messages.
> I have a parent proxy of a Trend Micro Interscan Viruswall version 3.8 running on 
> the same machine.  Here's an example from the cache.log file:
> 
> 2004/01/19 10:58:34| httpProcessReplyHeader: Impossible keep-alive header from 
> 'http://wisapidata.weatherbug.com/WxAlertIsapi/WxAlertIsapi.cgi?GetAlert30&Magic=1&ZipCode=27519&StationID=RALGH&Units=0&RegNum=27560925&Version=5.02&t=1074526042&lv=0'

The patch has now been corrected to deal with this case. A incremental 
patch is attached to this message.

Regards
Henrik
Index: src/HttpMsg.c
===================================================================
RCS file: /server/cvs-server/squid/squid/src/HttpMsg.c,v
retrieving revision 1.10
retrieving revision 1.10.2.1
diff -u -r1.10 -r1.10.2.1
--- src/HttpMsg.c       12 Jan 2001 00:37:14 -0000      1.10
+++ src/HttpMsg.c       19 Jan 2004 17:34:36 -0000      1.10.2.1
@@ -91,6 +91,7 @@
 int
 httpMsgIsPersistent(http_version_t http_ver, const HttpHeader * hdr)
 {
+#if WHEN_SQUID_IS_NOT_HTTP1_1
     if ((http_ver.major >= 1) && (http_ver.minor >= 1)) {
        /*
         * for modern versions of HTTP: persistent unless there is
@@ -98,6 +99,9 @@
         */
        return !httpHeaderHasConnDir(hdr, "close");
     } else {
+#else
+    {
+#endif
        /*
         * Persistent connections in Netscape 3.x are allegedly broken,
         * return false if it is a browser connection.  If there is a

Reply via email to