Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2016-12-13 22:00:49 +0300
committerRuslan Ermilov <ru@nginx.com>2016-12-13 22:00:49 +0300
commit7d34042e4aea77d2e67850d6db107a6a3cf5cb30 (patch)
tree716d6cbf581d3294721f10c95b1cb1692dca622e /src/http/ngx_http.c
parent2fbe04c487c50d5556423daf2c9e7a87ae3d719e (diff)
The size of cmcf->phase_engine.handlers explained.
Diffstat (limited to 'src/http/ngx_http.c')
-rw-r--r--src/http/ngx_http.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/http/ngx_http.c b/src/http/ngx_http.c
index ba559f231..c036389a8 100644
--- a/src/http/ngx_http.c
+++ b/src/http/ngx_http.c
@@ -457,7 +457,10 @@ ngx_http_init_phase_handlers(ngx_conf_t *cf, ngx_http_core_main_conf_t *cmcf)
use_rewrite = cmcf->phases[NGX_HTTP_REWRITE_PHASE].handlers.nelts ? 1 : 0;
use_access = cmcf->phases[NGX_HTTP_ACCESS_PHASE].handlers.nelts ? 1 : 0;
- n = use_rewrite + use_access + cmcf->try_files + 1 /* find config phase */;
+ n = 1 /* find config phase */
+ + use_rewrite /* post rewrite phase */
+ + use_access /* post access phase */
+ + cmcf->try_files;
for (i = 0; i < NGX_HTTP_LOG_PHASE; i++) {
n += cmcf->phases[i].handlers.nelts;