Welcome! Log In Create A New Profile

Advanced

Re: question on module user context

April 11, 2009 11:33AM
2009/4/11 Maxim Dounin

> 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
>
>
Subject Author Posted

question on module user context

deltay April 11, 2009 11:04AM

Re: question on module user context

Maxim Dounin April 11, 2009 11:22AM

Re: question on module user context

deltay April 11, 2009 11:33AM

Re: question on module user context

Maxim Dounin April 11, 2009 03:43PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 264
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready