From: Ruslan Ermilov Date: Mon, 29 Apr 2013 14:58:58 +0000 (+0400) Subject: Proxy: allocate $proxy_internal_body_length from request pool. X-Git-Tag: release-1.5.0~2 X-Git-Url: http://git.kaiwu.me/sitemap.xml?a=commitdiff_plain;h=9014efdadfd9ba80a5f3829364551fcdf44d1213;p=nginx.git Proxy: allocate $proxy_internal_body_length from request pool. --- diff --git a/src/http/modules/ngx_http_proxy_module.c b/src/http/modules/ngx_http_proxy_module.c index eadc8c480..892ee27cb 100644 --- a/src/http/modules/ngx_http_proxy_module.c +++ b/src/http/modules/ngx_http_proxy_module.c @@ -2076,7 +2076,7 @@ ngx_http_proxy_internal_body_length_variable(ngx_http_request_t *r, v->no_cacheable = 0; v->not_found = 0; - v->data = ngx_pnalloc(r->connection->pool, NGX_OFF_T_LEN); + v->data = ngx_pnalloc(r->pool, NGX_OFF_T_LEN); if (v->data == NULL) { return NGX_ERROR;