From: Roman Arutyunyan Date: Tue, 19 May 2026 11:43:41 +0000 (+0400) Subject: HTTP/3: use max table capacity for insert buffer allocation X-Git-Tag: release-1.31.2~5 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=875750a4f76bf68189929f887951e02b66c99801;p=nginx.git HTTP/3: use max table capacity for insert buffer allocation Previously, current capacity was used for the allocation, which could be insufficient if table capacity was later increased. --- diff --git a/src/http/v3/ngx_http_v3_table.c b/src/http/v3/ngx_http_v3_table.c index 3b0b7b309..eac3da6bc 100644 --- a/src/http/v3/ngx_http_v3_table.c +++ b/src/http/v3/ngx_http_v3_table.c @@ -159,13 +159,17 @@ ngx_buf_t * ngx_http_v3_get_insert_buffer(ngx_connection_t *c) { ngx_http_v3_session_t *h3c; + ngx_http_v3_srv_conf_t *h3scf; ngx_http_v3_dynamic_table_t *dt; h3c = ngx_http_v3_get_session(c); dt = &h3c->table; if (dt->insert_buffer == NULL) { - dt->insert_buffer = ngx_create_temp_buf(c->pool, dt->capacity); + h3scf = ngx_http_v3_get_module_srv_conf(c, ngx_http_v3_module); + + dt->insert_buffer = ngx_create_temp_buf(c->pool, + h3scf->max_table_capacity); if (dt->insert_buffer == NULL) { return NULL; }