Welcome! Log In Create A New Profile

Advanced

[nginx] The size of cmcf->phase_engine.handlers explained.

December 13, 2016 02:12PM
details: http://hg.nginx.org/nginx/rev/666b2bea3cb9
branches:
changeset: 6838:666b2bea3cb9
user: Ruslan Ermilov <ru@nginx.com>
date: Tue Dec 13 22:00:49 2016 +0300
description:
The size of cmcf->phase_engine.handlers explained.

diffstat:

src/http/ngx_http.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)

diffs (15 lines):

diff -r 2c62d5613992 -r 666b2bea3cb9 src/http/ngx_http.c
--- a/src/http/ngx_http.c Tue Dec 13 22:00:42 2016 +0300
+++ b/src/http/ngx_http.c Tue Dec 13 22:00:49 2016 +0300
@@ -457,7 +457,10 @@ ngx_http_init_phase_handlers(ngx_conf_t
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;
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] The size of cmcf->phase_engine.handlers explained.

ru@nginx.com 304 December 13, 2016 02:12PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 80
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready