Commit fa102d26 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

r31738@cat (orig r1107): phk | 2006-09-20 16:52:07 +0200

 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/branches/1.0@1110 d4fa192b-c00b-0410-8231-f00ffab90ce4
parents 7e731ffc 3f62141b
......@@ -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