Welcome! Log In Create A New Profile

Advanced

NGX_HTTP_POST_ACCESS_PHASE

Kuroishi Mitsuo
May 17, 2016 09:54PM
Hi, I'm Mitsuo.


Although I noticed using 1.9.15, NGX_HTTP_POST_ACCESS_PHASE
array initialization seems not to exist.

Is this intentional?

I can assume that the patch below is needed.

Regards,

--
Kuroishi Mitsuo



--- nginx-1.9.15.orig/src/http/ngx_http.c 2016-05-17 10:41:42.333782615 +0900
+++ nginx-1.9.15/src/http/ngx_http.c 2016-05-18 10:44:42.175777828 +0900
@@ -382,6 +382,13 @@ ngx_http_init_phases(ngx_conf_t *cf, ngx
return NGX_ERROR;
}

+ if (ngx_array_init(&cmcf->phases[NGX_HTTP_POST_ACCESS_PHASE].handlers,
+ cf->pool, 2, sizeof(ngx_http_handler_pt))
+ != NGX_OK)
+ {
+ return NGX_ERROR;
+ }
+
if (ngx_array_init(&cmcf->phases[NGX_HTTP_CONTENT_PHASE].handlers,
cf->pool, 4, sizeof(ngx_http_handler_pt))
!= NGX_OK)

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

NGX_HTTP_POST_ACCESS_PHASE

Kuroishi Mitsuo 436 May 17, 2016 09:54PM

Re: NGX_HTTP_POST_ACCESS_PHASE

Maxim Dounin 161 May 18, 2016 08:22AM



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

Online Users

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