diff options
author | Roman Arutyunyan <arut@nginx.com> | 2021-07-16 15:43:01 +0300 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2021-07-16 15:43:01 +0300 |
commit | 245a15ed2738ad5e7ca971f2ae3c34d2288dc4f9 (patch) | |
tree | 6514cbef7e3e0b71ce2e618a9b94384913af47a3 /src | |
parent | fc2311137fdb61f4a9c4cfdd8654ac0155ff85c9 (diff) | |
download | nginx-245a15ed2738ad5e7ca971f2ae3c34d2288dc4f9.tar.gz nginx-245a15ed2738ad5e7ca971f2ae3c34d2288dc4f9.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/http/v3/ngx_http_v3_filter_module.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/http/v3/ngx_http_v3_filter_module.c b/src/http/v3/ngx_http_v3_filter_module.c index 8f2e3ff43..71aa839e1 100644 --- 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_request_t *r) 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_request_t *r) 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_request_t *r) 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_request_t *r) + 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_request_t *r) 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; } |