From: wessels <> Date: Thu, 13 Nov 1997 07:17:08 +0000 (+0000) Subject: Check failure ratio is broken because log_tags and err_type are now X-Git-Tag: SQUID_3_0_PRE1~4542 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0509802639bf47f09c8de0ff1677c97a51f42acf;p=thirdparty%2Fsquid.git Check failure ratio is broken because log_tags and err_type are now independent. Need new idea. --- diff --git a/src/client_side.cc b/src/client_side.cc index 944bf187c2..c7ffc3bd2d 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.147 1997/11/12 23:47:37 wessels Exp $ + * $Id: client_side.cc,v 1.148 1997/11/13 00:17:08 wessels Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -51,7 +51,9 @@ static char *icpConstruct304reply(struct _http_reply *); static int CheckQuickAbort2(const clientHttpRequest *); static int icpCheckTransferDone(clientHttpRequest *); static void CheckQuickAbort(clientHttpRequest *); +#if CHECK_FAILURE_IS_BROKE static void checkFailureRatio(log_type, hier_code); +#endif static void clientProcessMISS(int, clientHttpRequest *); static void clientAppendReplyHeader(char *, const char *, size_t *, size_t); size_t clientBuildReplyHeader(clientHttpRequest *, char *, size_t *, char *, size_t); @@ -534,7 +536,9 @@ httpRequestFree(void *data) redirectUnregister(http->url, http); if (http->acl_checklist) aclChecklistFree(http->acl_checklist); +#if CHECK_FAILURE_IS_BROKE checkFailureRatio(http->log_type, http->al.hier.code); +#endif safe_free(http->url); safe_free(http->log_url); safe_free(http->al.headers.reply); @@ -1835,6 +1839,7 @@ icpConstruct304reply(struct _http_reply *source) * Duane W., Sept 16, 1996 */ +#if CHECK_FAILURE_IS_BROKE static void checkFailureRatio(log_type rcode, hier_code hcode) { @@ -1866,3 +1871,4 @@ checkFailureRatio(log_type rcode, hier_code hcode) hit_only_mode_until = squid_curtime + FAILURE_MODE_TIME; fail_ratio = 0.8; /* reset to something less than 1.0 */ } +#endif