question on module user context

Maxim Dounin mdounin at
Sat Apr 11 19:22:11 MSD 2009


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.

Maxim Dounin

More information about the nginx mailing list