Commit 45de3ad2 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

VSL the frame before holding the mtx

parent 88f326a7
......@@ -513,6 +513,8 @@ h2_rxframe(struct worker *wrk, struct h2_sess *h2)
/* XXX: later full DATA will not be rx'ed yet. */
HTC_RxPipeline(h2->htc, h2->htc->rxbuf_b + h2->rxf_len + 9);
h2_vsl_frame(h2, h2->htc->rxbuf_b, 9L + h2->rxf_len);
Lck_Lock(&h2->sess->mtx);
VTAILQ_FOREACH(r2, &h2->streams, list)
if (r2->stream == h2->rxf_stream)
......@@ -523,8 +525,6 @@ h2_rxframe(struct worker *wrk, struct h2_sess *h2)
r2 = h2_new_req(wrk, h2, h2->rxf_stream, NULL);
}
h2_vsl_frame(h2, h2->htc->rxbuf_b, 9L + h2->rxf_len);
ft = (enum h2frame)h2->htc->rxbuf_b[3];
switch (ft) {
#define H2_FRAME(l,u,t,f) \
......
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