Browse Source

[core] remove obsolete comment about r->gw_dechunk

r->gw_dechunk->b is not a candidate for using generic chunk buffers.
chunked headers are generally smaller and fit in default 64 byte alloc.
Also, lighttpd limits chunked header to 1k.

Avoid unneeded optimization since HTTP/1.1 use is likely to diminish
over time in favor of HTTP/2 or HTTP/3 or later.
master
Glenn Strauss 2 months ago
parent
commit
cb7deb493c
  1. 2
      src/http-header-glue.c

2
src/http-header-glue.c

@ -957,8 +957,6 @@ static int http_response_process_headers(request_st * const restrict r, http_res
/*(assumes "Transfer-Encoding: chunked"; does not verify)*/
r->resp_decode_chunked = 1;
r->gw_dechunk = calloc(1, sizeof(response_dechunk));
/* XXX: future: might consider using chunk_buffer_acquire()
* and chunk_buffer_release() for r->gw_dechunk->b */
force_assert(r->gw_dechunk);
continue;
case HTTP_HEADER_HTTP2_SETTINGS:

Loading…
Cancel
Save