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

This commit is contained in:
Valentin Bartenev 2016-02-02 16:33:55 +03:00
parent 3351fbe481
commit 405f4f99b4

View File

@ -251,7 +251,7 @@ ngx_http_v2_init(ngx_event_t *rev)
return; 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) { if (cln == NULL) {
ngx_http_close_connection(c); ngx_http_close_connection(c);
return; return;