mirror of
https://github.com/nginx/nginx.git
synced 2025-06-27 17:22:48 +08:00
HTTP/2: fixed excessive memory allocation for pool cleanup.
This commit is contained in:
parent
3351fbe481
commit
405f4f99b4
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user