From: phk Date: Wed, 20 Sep 2006 14:52:07 +0000 (+0000) Subject: Examine queue length, not how many have passed through the queue over all time. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2c7e2d05c56de38885272a24e80051ace6714e0;p=varnish 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 --- 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);