From e2c7e2d05c56de38885272a24e80051ace6714e0 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 20 Sep 2006 14:52:07 +0000 Subject: [PATCH] Examine queue length, not how many have passed through the queue over all time. MFC: yes. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1107 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varnish-cache/bin/varnishd/cache_pool.c b/varnish-cache/bin/varnishd/cache_pool.c index 410600cc..08da4686 100644 --- a/varnish-cache/bin/varnishd/cache_pool.c +++ b/varnish-cache/bin/varnishd/cache_pool.c @@ -303,7 +303,7 @@ WRK_QueueSession(struct sess *sp) * the result will be */ if (sp->obj == NULL && - (VSL_stats->n_wrk_overflow > + (VSL_stats->n_wrk_queue > (params->wthread_max * params->overflow_max) / 100)) { VSL_stats->n_wrk_drop++; UNLOCK(&tmtx); -- 2.39.5