question on module user context
delta.yeh at gmail.com
Sat Apr 11 19:33:22 MSD 2009
2009/4/11 Maxim Dounin <mdounin at mdounin.ru>
> On Sat, Apr 11, 2009 at 11:04:14PM +0800, Delta Yeh wrote:
> > Hi ,
> > If I set a context to a module with ngx_http_set_ctx(r, c, module)
> > Is this context valid only for current http request?
> > Should I set the context for each new http request?
> No, only for requests where you actually need context.
So the context is used for the scenario that the handler callback will be
called multiple times to process the http request ?
> Maxim Dounin
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx