From 893cbac6c562f214f0040285c436457c7bc0a116 Mon Sep 17 00:00:00 2001 From: hno <> Date: Wed, 15 May 2002 16:30:27 +0000 Subject: [PATCH] The fatal helper queue overflow condition should not be limited by the warning rate limitation. --- src/helper.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/helper.cc b/src/helper.cc index 29cddc8742..c7c59d9cf7 100644 --- a/src/helper.cc +++ b/src/helper.cc @@ -1,6 +1,6 @@ /* - * $Id: helper.cc,v 1.36 2002/04/28 14:55:40 hno Exp $ + * $Id: helper.cc,v 1.37 2002/05/15 10:30:27 hno Exp $ * * DEBUG: section 29 Helper process maintenance * AUTHOR: Harvest Derived? @@ -872,6 +872,8 @@ StatefulEnqueue(statefulhelper * hlp, helper_stateful_request * r) hlp->stats.queue_size++; if (hlp->stats.queue_size < hlp->n_running) return; + if (hlp->stats.queue_size > hlp->n_running * 2) + fatalf("Too many queued %s requests", hlp->id_name); if (squid_curtime - hlp->last_queue_warn < 600) return; if (shutting_down || reconfiguring) @@ -879,8 +881,6 @@ StatefulEnqueue(statefulhelper * hlp, helper_stateful_request * r) hlp->last_queue_warn = squid_curtime; debug(14, 0) ("WARNING: All %s processes are busy.\n", hlp->id_name); debug(14, 0) ("WARNING: %d pending requests queued\n", hlp->stats.queue_size); - if (hlp->stats.queue_size > hlp->n_running * 2) - fatalf("Too many queued %s requests", hlp->id_name); debug(14, 1) ("Consider increasing the number of %s processes in your config file.\n", hlp->id_name); } -- 2.47.3