Browse Source

[core] chunkqueue_small_resp_optim if resp < 16k

(adjusted down from 32k after some basic benchmarking using weighttp)
master
Glenn Strauss 3 months ago
parent
commit
a067d99fa0
  1. 2
      src/response.c

2
src/response.c

@ -172,7 +172,7 @@ http_response_write_header (request_st * const r)
if (r->resp_body_finished
&& light_btst(r->resp_htags, HTTP_HEADER_CONTENT_LENGTH)
&& (cqlen = chunkqueue_length(cq) - r->resp_header_len) > 0
&& cqlen <= 32768)
&& cqlen < 16384)
chunkqueue_small_resp_optim(cq);
}

Loading…
Cancel
Save