NGX_HTTP_POST_ACCESS_PHASE
Kuroishi Mitsuo
kuroishi at iij.ad.jp
Wed May 18 01:52:16 UTC 2016
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)
More information about the nginx-devel
mailing list