]> git.kaiwu.me - nginx.git/commit
HTTP/3: fixed NGX_HTTP_V3_VARLEN_INT_LEN value.
authorRoman Arutyunyan <arut@nginx.com>
Fri, 18 Apr 2025 07:16:57 +0000 (11:16 +0400)
committerpluknet <pluknet@nginx.com>
Wed, 23 Apr 2025 11:48:54 +0000 (15:48 +0400)
commit55be5536a8fa4dba3ef687db2532ac96bd879b2b
tree24fe75097f63674e2d90838d1c19f8fe924dd417
parent3a97c9616cfd7c4dd3a177cb2cb583301e80404c
HTTP/3: fixed NGX_HTTP_V3_VARLEN_INT_LEN value.

After fixing ngx_http_v3_encode_varlen_int() in 400eb1b628,
NGX_HTTP_V3_VARLEN_INT_LEN retained the old value of 4, which is
insufficient for the values over 1073741823 (1G - 1).

The NGX_HTTP_V3_VARLEN_INT_LEN macro is used in ngx_http_v3_uni.c to
format stream and frame types.  Old buffer size is enough for formatting
this data.  Also, the macro is used in ngx_http_v3_filter_module.c to
format output chunks and trailers.  Considering output_buffers and
proxy_buffer_size are below 1G in all realistic scenarios, the old buffer
size is enough here as well.
src/http/v3/ngx_http_v3.h