Re: ngx_http_cleanup_add

2021-11-10 Thread Dk Jack
> > Hi, > > In my module, I am allocating some memory for each request and saving the > > ptr in my module context. I am registering a callback using > > ngx_http_cleanup_add to perform cleanup for each request. I am releasing > > the memory for the allocation in the c

Re: ngx_http_cleanup_add

2021-11-10 Thread Maxim Dounin
Hello! On Wed, Nov 10, 2021 at 07:22:50PM -0800, Dk Jack wrote: > Hi, > In my module, I am allocating some memory for each request and saving the > ptr in my module context. I am registering a callback using > ngx_http_cleanup_add to perform cleanup for each request. I am releasing

ngx_http_cleanup_add

2021-11-10 Thread Dk Jack
Hi, In my module, I am allocating some memory for each request and saving the ptr in my module context. I am registering a callback using ngx_http_cleanup_add to perform cleanup for each request. I am releasing the memory for the allocation in the cleanup callback. In the log phase, I want to make