Commit 3f62141b authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Examine queue length, not how many have passed through the queue over all time.

MFC: yes.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1107 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent e92e0bf3
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment