Pb with module initialization

MAGNIEN, Thierry thierry.magnien at sfr.com
Fri Aug 17 11:44:58 UTC 2012

Hi and thanks for your answer.

> A shared memory zone has a constructor, namely, init() method in
> ngx_shm_zone_t. This method is invoked by ngx_init_cycle() when the
> configuration is already processed and the shared memory zones are
> about to be (re)initialized, so I guess you can accees both your
> directives and the actual shm zone data from there. See file cache
> initialization routine ngx_http_file_cache_init() in
> src/http/ngx_http_file_cache.c for an example.

Well, I have such an init method but its arguments are only (ngx_shm_zone_t *shm_zone, void *data). I suppose I must use ngx_get_conf but what arguments should I give to it ?


More information about the nginx-devel mailing list