587 B
587 B
ngx-poold
Instructions
Pool debug for check whether pool is destroy or destroy twice
API
NGX_CREATE_POOL
#define NGX_CREATE_POOL(size, log)
Replace NGX_CREATE_POOL instead of ngx_create_pool, it will record position creating pool. must use with NGX_DESTROY_POOL
NGX_DESTROY_POOL
#define NGX_DESTROY_POOL(pool)
Replace NGX_DESTROY_POOL instead of ngx_destroy_pool, it will delete info which NGX_CREATE_POOL add. If pool not register in record pool, the pool will not destroy, and log delete twice log and position call the NGX_DESTROY_POOL.