Re: Permanent structure to accumulate data

2018-02-09 Thread Sergey Brester
Unfortunately, the question is ambiguous. You can put it into the structure, you initialized `mycf = ngx_pcalloc(cf->pool, size)`, where cf is `ngx_conf_t *cf`, if you want to save it per location. Then you can get it in the handler, using `mycf = ngx_http_get_module_loc_conf(r,

Permanent structure to accumulate data

2018-02-09 Thread Antonio Nappa
Hello, I am looking for a structure that I can use to store a counter in the module, this structure should not be reset every time there is a new request. I have made tests with the module custom ctx and the module custom srv configuration without success, which means every time there is a new