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

If the acceptor thread can hand work off to other threads, release any

VCL reference it might have, in order to not hold on to discarded VCLs
forever.
parent 419304a9
......@@ -163,6 +163,13 @@ pool_accept(struct worker *wrk, void *arg)
wrk2->task.func = SES_pool_accept_task;
wrk2->task.priv = pp->sesspool;
AZ(pthread_cond_signal(&wrk2->cond));
/*
* We were able to hand off, so release this threads VCL
* reference (if any) so we don't hold on to discarded VCLs.
*/
if (wrk->vcl != NULL)
VCL_Rel(&wrk->vcl);
}
}
......
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