Best place to store per-request state ?

James Gan ganzhi at gmail.com
Wed Mar 4 06:56:55 UTC 2015


I'm learning how to develop module for nginx.

In one of my testing module, I'm trying to save several per-request
int/long states for each http request in my  module. The easiest approach
seems to add these variables to ngx_http_request_s struct. Though I don't
really want to modify core modules.

Is there a recommended approach for saving per-request state without
modifying core http modules?

Thanks a lot!

-- 
Many Thanks!

Best Regards
James Gan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20150303/1068d11c/attachment.html>


More information about the nginx-devel mailing list