Shared Memory Structure?

2016-05-03 Thread ben5192
I am storing things in a shared memory zone allocated with ngx_shared_memory_add and allocating each slab with ngx_slab_alloc_locked (as these items don’t need to be locked particularly). The problem I'm having is that I add the shared memory with exactly the amount I need. However, the final large

main conf created twice, only closed once?

2016-03-14 Thread ben5192
Hi, I have a problem with a module I'm writing. I need to do something in the main config after variables are read from the conf file, so I have put this in the post_conf function. Then I need do something when to it when the process is closed via ./nginx -s reload this is in the exit_process func

Re: NGINX reload memory leak

2016-03-08 Thread ben5192
Ok, thanks. I will post this over there. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,265157,265161#msg-265161 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: NGINX reload memory leak

2016-03-08 Thread ben5192
14:01, schrieb ben5192: > > Hi, > > I am working on a module for NGINX and am having a problem with > memory > > leaking when using "./nginx -s reload". Everything that is allocated > is > > done > > so through ngx_palloc or ngx_pcalloc so NGINX should kno

NGINX reload memory leak

2016-03-08 Thread ben5192
Hi, I am working on a module for NGINX and am having a problem with memory leaking when using "./nginx -s reload". Everything that is allocated is done so through ngx_palloc or ngx_pcalloc so NGINX should know to clean it up. I have also added a function to exit process which uses ngx_pfree on ever