From: wessels <> Date: Sat, 1 Nov 1997 02:54:14 +0000 (+0000) Subject: keepalive ratio fixes X-Git-Tag: SQUID_3_0_PRE1~4597 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=537eedcb055dd0a60bf667bd5ab2dfd200f090e8;p=thirdparty%2Fsquid.git keepalive ratio fixes --- diff --git a/src/http.cc b/src/http.cc index 1013246c9b..a62d19d173 100644 --- a/src/http.cc +++ b/src/http.cc @@ -1,6 +1,6 @@ /* - * $Id: http.cc,v 1.209 1997/10/31 19:34:59 wessels Exp $ + * $Id: http.cc,v 1.210 1997/10/31 19:54:14 wessels Exp $ * * DEBUG: section 11 Hypertext Transfer Protocol (HTTP) * AUTHOR: Harvest Derived @@ -410,7 +410,7 @@ httpParseReplyHeaders(const char *buf, struct _http_reply *reply) EBIT_SET(reply->misc_headers, HDR_SET_COOKIE); ReplyHeaderStats.misc[HDR_SET_COOKIE]++; } else if (!strncasecmp(t, "Proxy-Connection:", 17)) { - for (t += 14; isspace(*t); t++); + for (t += 17; isspace(*t); t++); if (!strcasecmp(t, "Keep-Alive")) EBIT_SET(reply->misc_headers, HDR_PROXY_KEEPALIVE); } @@ -909,7 +909,7 @@ httpSendRequest(int fd, void *data) if ((xcount++ & 0x3F) == 0) debug(0, 0) ("%s Keepalive Ratio = %f\n", p->host, - p->stats.n_keepalives_recv / p->stats.n_keepalives_sent); + (double) p->stats.n_keepalives_recv / (double) p->stats.n_keepalives_sent); } } len = httpBuildRequestHeader(req,