From 2c6590a316f79cb4d3c9433d1986428fc4c89308 Mon Sep 17 00:00:00 2001 From: rousskov <> Date: Sat, 23 May 1998 04:29:59 +0000 Subject: [PATCH] - do not disable client-side pconns for Netscape User-Agent if it is a proxy connection (not a client connection) --- src/HttpReply.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/HttpReply.cc b/src/HttpReply.cc index 5308d0e142..b68da2f345 100644 --- a/src/HttpReply.cc +++ b/src/HttpReply.cc @@ -1,6 +1,6 @@ /* - * $Id: HttpReply.cc,v 1.20 1998/05/22 05:19:09 rousskov Exp $ + * $Id: HttpReply.cc,v 1.21 1998/05/22 22:29:59 rousskov Exp $ * * DEBUG: section 58 HTTP Reply (Response) * AUTHOR: Alex Rousskov @@ -419,9 +419,11 @@ httpMsgIsPersistent(float http_ver, const HttpHeader *hdr) /* for modern versions of HTTP: persistent if not "close"d */ return !httpHeaderHasConnDir(hdr, "close"); } else { - /* pconns in Netscape 3.x are allegedly broken, return false */ + /* pconns in Netscape 3.x are allegedly broken, return false + * if it is a client connection */ const char *agent = httpHeaderGetStr(hdr, HDR_USER_AGENT); - if (agent && (!strncasecmp(agent, "Mozilla/3.", 10) || !strncasecmp(agent, "Netscape/3.", 11))) + if (agent && !httpHeaderHas(hdr, HDR_VIA) && + (!strncasecmp(agent, "Mozilla/3.", 10) || !strncasecmp(agent, "Netscape/3.", 11))) return 0; /* for old versions of HTTP: persistent if has "keep-alive" */ return httpHeaderHasConnDir(hdr, "keep-alive"); -- 2.47.3