Commit a1049d93 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland Committed by Dridi Boukelmoune

Set up 'wrk->vsl' pointer for H/2 session thread

The H/2 session thread does have a VSL buffer already set up, but the
'wrk->vsl' pointer was not set. This caused issue for e.g. LRU_NukeOne()
as it wants to log. Set the buffer for the duration that the worker is
dedicated as an H/2 session thread.
parent 49c224e7
......@@ -361,10 +361,14 @@ h2_new_session(struct worker *wrk, void *arg)
AZ(h2->htc->priv);
h2->htc->priv = h2;
AZ(wrk->vsl);
wrk->vsl = h2->vsl;
if (req->err_code == H2_OU_MARKER && !h2_ou_session(wrk, h2, req)) {
assert(h2->refcnt == 1);
h2_del_req(wrk, h2->req0);
h2_del_sess(wrk, h2, SC_RX_JUNK);
wrk->vsl = NULL;
return;
}
assert(HTC_S_COMPLETE == H2_prism_complete(h2->htc));
......@@ -435,6 +439,7 @@ h2_new_session(struct worker *wrk, void *arg)
assert(h2->refcnt == 1);
h2_del_req(wrk, h2->req0);
h2_del_sess(wrk, h2, h2->error->reason);
wrk->vsl = NULL;
}
struct transport H2_transport = {
......
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