[nginx] HTTP/2: fixed excessive memory allocation for pool cleanup.

Valentin Bartenev vbart at nginx.com
Tue Feb 2 13:34:35 UTC 2016


details:   http://hg.nginx.org/nginx/rev/f598de1bfcd4
branches:  
changeset: 6374:f598de1bfcd4
user:      Valentin Bartenev <vbart at nginx.com>
date:      Tue Feb 02 16:33:55 2016 +0300
description:
HTTP/2: fixed excessive memory allocation for pool cleanup.

diffstat:

 src/http/v2/ngx_http_v2.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r d2dc8bc0394a -r f598de1bfcd4 src/http/v2/ngx_http_v2.c
--- a/src/http/v2/ngx_http_v2.c	Tue Feb 02 16:33:55 2016 +0300
+++ b/src/http/v2/ngx_http_v2.c	Tue Feb 02 16:33:55 2016 +0300
@@ -251,7 +251,7 @@ ngx_http_v2_init(ngx_event_t *rev)
         return;
     }
 
-    cln = ngx_pool_cleanup_add(c->pool, sizeof(ngx_pool_cleanup_file_t));
+    cln = ngx_pool_cleanup_add(c->pool, 0);
     if (cln == NULL) {
         ngx_http_close_connection(c);
         return;



More information about the nginx-devel mailing list