# HG changeset patch # User Roman Arutyunyan # Date 1626439381 -10800 # Node ID 07f90cb79fec42c6f51c799b6702d9db952ad6b7 # Parent 8e8cdb7bfb172469a2e0c38cd511b9f7b42522e5 HTTP/3: use request pool instead of connection pool. In several parts of ngx_http_v3_header_filter() connection pool was used for request-related data. diff --git a/src/http/v3/ngx_http_v3_filter_module.c b/src/http/v3/ngx_http_v3_filter_module.c --- a/src/http/v3/ngx_http_v3_filter_module.c +++ b/src/http/v3/ngx_http_v3_filter_module.c @@ -483,7 +483,7 @@ ngx_http_v3_header_filter(ngx_http_reque b->last_buf = 1; } - cl = ngx_alloc_chain_link(c->pool); + cl = ngx_alloc_chain_link(r->pool); if (cl == NULL) { return NGX_ERROR; } @@ -496,7 +496,7 @@ ngx_http_v3_header_filter(ngx_http_reque len = ngx_http_v3_encode_varlen_int(NULL, NGX_HTTP_V3_FRAME_HEADERS) + ngx_http_v3_encode_varlen_int(NULL, n); - b = ngx_create_temp_buf(c->pool, len); + b = ngx_create_temp_buf(r->pool, len); if (b == NULL) { return NGX_ERROR; } @@ -505,7 +505,7 @@ ngx_http_v3_header_filter(ngx_http_reque NGX_HTTP_V3_FRAME_HEADERS); b->last = (u_char *) ngx_http_v3_encode_varlen_int(b->last, n); - hl = ngx_alloc_chain_link(c->pool); + hl = ngx_alloc_chain_link(r->pool); if (hl == NULL) { return NGX_ERROR; } @@ -523,7 +523,7 @@ ngx_http_v3_header_filter(ngx_http_reque + ngx_http_v3_encode_varlen_int(NULL, r->headers_out.content_length_n); - b = ngx_create_temp_buf(c->pool, len); + b = ngx_create_temp_buf(r->pool, len); if (b == NULL) { return NGX_ERROR; } @@ -533,7 +533,7 @@ ngx_http_v3_header_filter(ngx_http_reque b->last = (u_char *) ngx_http_v3_encode_varlen_int(b->last, r->headers_out.content_length_n); - cl = ngx_alloc_chain_link(c->pool); + cl = ngx_alloc_chain_link(r->pool); if (cl == NULL) { return NGX_ERROR; }