Commit 3c09eb39 authored by Dag Haavi Finstad's avatar Dag Haavi Finstad Committed by Nils Goroll

h2_vsl_frame: Exit early if masked

The VSB bits in here come with a very significant performance penalty
for H2 request body processing.
parent 96e87339
......@@ -243,6 +243,10 @@ h2_vsl_frame(const struct h2_sess *h2, const void *ptr, size_t len)
const char *p;
unsigned u;
if (VSL_tag_is_masked(SLT_H2RxHdr) &&
VSL_tag_is_masked(SLT_H2RxBody))
return;
AN(ptr);
assert(len >= 9);
b = ptr;
......
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