Does ngx_pool_t survives reload ?
thierry.magnien at sfr.com
Wed May 7 09:16:55 UTC 2014
I wrote a Nginx module and am facing a problem: I need to keep some data across reloads, so I'm using a shared memory segment and everything works fine except one thing.
In the data structure I keep, there are ngx_regex_compile_t data, which were allocated on a ngx_pool_t. And what I see is that all the data are kept, except regex code, which was allocated on this ngx_pool_t.
Are pools resetted on a reload and is there a way:
- either to allocate regex codes on something else than a pool
- or use a pool that would not be resetted ?
Thanks for your help,
More information about the nginx-devel