Welcome! Log In Create A New Profile

Advanced

Re: Question about the env

November 13, 2010 06:51AM
I carefully read the code of "ngx_set_env" and "ngx_set_environment". And I found that once "ngx_set_environment" is invoked, the arguments of "env" directive is put into "envrion", which makes those variables effective.

However, this works well only when ngx_set_environment is invoked. And ngx_set_environment will be invoked only when new worker process is initiated. But in the developement/debug mode (daemon off, master_process off), the variables will never be put into environ, which may incur some inconsistent bug when nginx is running in dev mode and production mode.

Therefore, I think this is a bug.
Subject Author Posted

Question about the env

speedfirst November 12, 2010 02:09AM

Re: Question about the env

Igor Sysoev November 12, 2010 02:26PM

Re: Question about the env

Igor Sysoev November 12, 2010 02:48PM

Re: Question about the env

speedfirst November 13, 2010 06:51AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 169
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready