question on module user context

Delta Yeh delta.yeh at gmail.com
Sat Apr 11 19:33:22 MSD 2009


2009/4/11 Maxim Dounin <mdounin at mdounin.ru>

> Hello!
>
> 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?
>
> Yes.
>
> > 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...
URL: <http://nginx.org/pipermail/nginx/attachments/20090411/458ec4b5/attachment.html>


More information about the nginx mailing list