Commit 54be487b authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Fail gracefull rather than xxxassert() on lack of worker threads.

Fixes: #2930
parent 92d01627
......@@ -299,7 +299,12 @@ h2_ou_session(struct worker *wrk, struct h2_sess *h2,
h2_del_req(wrk, r2);
return (0);
}
XXXAZ(Pool_Task(wrk->pool, &req->task, TASK_QUEUE_REQ));
if (Pool_Task(wrk->pool, &req->task, TASK_QUEUE_REQ)) {
r2->scheduled = 0;
h2_del_req(wrk, r2);
VSLb(h2->vsl, SLT_Debug, "H2: No Worker-threads");
return (h2_ou_rel(wrk, req));
}
return (1);
}
......
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