Re: Netscape V3.0.x has persistent connection troubles with Squid 1.2

From: Stewart Forster <slf@dont-contact.us>
Date: Fri, 22 May 1998 15:06:38 +1000

--MimeMultipartBoundary
Content-Type: text/plain; charset=us-ascii

Hiya,

        Here's the unified diff that fixes the problem with Squid 1.2
interaction with Netscape V3. Apllied against 1.2beta20 with Henrik's
patches.

        Cheers,

                Stew.

===================================================================
RCS file: RCS/client_side.c,v
retrieving revision 1.2
diff -u -r1.2 client_side.c
--- client_side.c 1998/05/22 05:02:49 1.2
+++ client_side.c 1998/05/22 05:03:11
@@ -796,10 +796,15 @@
        fvdbCountVia(t);
 #endif
     }
+ if ((t = mime_get_header(request_hdr, "User-Agent"))) {
+ if (!strncasecmp(t, "Netscape/3", 10))
+ EBIT_CLR(request->flags, REQ_PROXY_KEEPALIVE);
+ if (!strncasecmp(t, "Mozilla/3", 9))
+ EBIT_CLR(request->flags, REQ_PROXY_KEEPALIVE);
 #if USE_USERAGENT_LOG
- if ((t = mime_get_header(request_hdr, "User-Agent")))
        logUserAgent(fqdnFromAddr(http->conn->peer.sin_addr), t);
 #endif
+ }
 #if FORW_VIA_DB
     if ((t = mime_get_header(request_hdr, "X-Forwarded-For")))
        fvdbCountForw(t);

--MimeMultipartBoundary--
Received on Tue Jul 29 2003 - 13:15:49 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:11:47 MST