Commit f490fa7c authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Fix logic bug so we don't reap worker threads all the time.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1048 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 8d0949b6
......@@ -339,7 +339,7 @@ wrk_reaperthread(void *priv)
w = TAILQ_LAST(&qp->idle, workerhead);
if (w != NULL &&
(w->idle + params->wthread_timeout < now ||
VSL_stats->n_wrk <= params->wthread_max))
VSL_stats->n_wrk > params->wthread_max))
TAILQ_REMOVE(&qp->idle, w, list);
else
w = NULL;
......
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