Welcome! Log In Create A New Profile

Advanced

Re: fastcgi_cache_bypass and 502 Bad Gateway

agentzh
February 13, 2011 11:42PM
On Sat, Feb 12, 2011 at 8:21 AM, António P. P. Almeida <appa@perusio.net> wrote:
>
> So there's no concept of scope in the usual programming language
> sense. It just depends on the request. If the request visits all
> locations where variables are set, then the values are set
> independently of the context level at which the assignment
> instructions exist.
>
> Is this correct?
>

Correct as long as the "request" in your context is an *atomic*
request, that is, excluding any subrequests that it issues directly or
indirectly.

Even though by default, nginx subrequests also *share* all the
variables of the parent requests (as well as all of its siblings), and
ngx_auth_request, ngx_eval, ngx_addition, and ngx_ssi all follow this
default behavior, some notable exceptions, however, exist in the wild.

Almost all of *our* nginx modules, for example, disable the sharing
because of potential bad effects similar to use of global variables in
a general-purpose programming language. Our ngx_echo, ngx_srcache, and
ngx_lua modules fall into this category, just to name a few :)

Cheers,
-agentzh

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

fastcgi_cache_bypass and 502 Bad Gateway

kaspars February 10, 2011 07:08AM

Re: fastcgi_cache_bypass and 502 Bad Gateway

kaspars February 11, 2011 08:24AM

Re: fastcgi_cache_bypass and 502 Bad Gateway

Dayo February 11, 2011 10:15AM

Re: fastcgi_cache_bypass and 502 Bad Gateway

kaspars February 11, 2011 11:31AM

Re: fastcgi_cache_bypass and 502 Bad Gateway

Dayo February 11, 2011 11:57AM

Re: fastcgi_cache_bypass and 502 Bad Gateway

kaspars February 11, 2011 12:07PM

Re: fastcgi_cache_bypass and 502 Bad Gateway

Dayo February 11, 2011 12:50PM

Re: fastcgi_cache_bypass and 502 Bad Gateway

Maxim Dounin February 11, 2011 01:08PM

Re: fastcgi_cache_bypass and 502 Bad Gateway

kaspars February 11, 2011 04:19PM

Re: fastcgi_cache_bypass and 502 Bad Gateway

António P. P. Almeida February 11, 2011 04:58PM

Re: fastcgi_cache_bypass and 502 Bad Gateway

Maxim Dounin February 11, 2011 07:10PM

Re: fastcgi_cache_bypass and 502 Bad Gateway

António P. P. Almeida February 11, 2011 07:30PM

Re: fastcgi_cache_bypass and 502 Bad Gateway

Dayo February 12, 2011 04:15AM

Re: fastcgi_cache_bypass and 502 Bad Gateway

kaspars February 13, 2011 09:18AM

Re: fastcgi_cache_bypass and 502 Bad Gateway

António P. P. Almeida February 12, 2011 07:52AM

Re: fastcgi_cache_bypass and 502 Bad Gateway

agentzh February 13, 2011 11:42PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 301
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