Merge branch 'nginx' (nginx-1.11.12). Change-Id: I04b4c1af3f06d80656f4d911e1763310a1d581cd Signed-off-by: Piotr Sikora <piotrsikora@google.com>
diff --git a/.hgtags b/.hgtags index e8e3a96..f56b37f 100644 --- a/.hgtags +++ b/.hgtags
@@ -410,3 +410,4 @@ 20a45c768e5ed26b740679d0e22045c98727c3cc release-1.11.9 1ad0999a7ded3d4fb01c7acf8ff57c80b643da7e release-1.11.10 d8b321a876d6254e9e98795e3b194ef053290354 release-1.11.11 +7f394e433f0003222aa6531931ecc0b24740d5e4 release-1.11.12
diff --git a/BUILD b/BUILD index 8c3f51b..ae282e2 100644 --- a/BUILD +++ b/BUILD
@@ -1468,5 +1468,5 @@ preinst = "@nginx_pkgoss//:debian_preinst", prerm = "@nginx_pkgoss//:debian_prerm", section = "httpd", - version = "1.11.11", + version = "1.11.12", )
diff --git a/build.bzl b/build.bzl index a53c2c7..38e8c35 100644 --- a/build.bzl +++ b/build.bzl
@@ -663,7 +663,7 @@ name = "nginx_pkgoss", build_file_content = _PKGOSS_BUILD_FILE.format(nginx = nginx) + _PKGOSS_BUILD_FILE_TAIL, - commit = "d80a760096c57ba3db2560557e5db9a63d2fed47", # nginx-1.11.11 + commit = "6875999d1ccf62b0ecdc3cbad5f3b0a0c6f4069d", # nginx-1.11.12 remote = "https://nginx.googlesource.com/nginx-pkgoss", )
diff --git a/docs/xml/nginx/changes.xml b/docs/xml/nginx/changes.xml index ce4a1b9..6106043 100644 --- a/docs/xml/nginx/changes.xml +++ b/docs/xml/nginx/changes.xml
@@ -5,6 +5,22 @@ <change_log title="nginx"> +<changes ver="1.11.12" date="2017-03-24"> + +<change type="bugfix"> +<para lang="ru"> +nginx мог нагружать процессор; +ошибка появилась в 1.11.11. +</para> +<para lang="en"> +nginx might hog CPU; +the bug had appeared in 1.11.11. +</para> +</change> + +</changes> + + <changes ver="1.11.11" date="2017-03-21"> <change type="feature">
diff --git a/src/core/nginx.h b/src/core/nginx.h index 7335122..eb5bf53 100644 --- a/src/core/nginx.h +++ b/src/core/nginx.h
@@ -13,8 +13,8 @@ #define NGINX_NAME "nginx" #endif -#define nginx_version 1011011 -#define NGINX_VERSION "1.11.11" +#define nginx_version 1011012 +#define NGINX_VERSION "1.11.12" #define NGINX_VER NGINX_NAME "/" NGINX_VERSION #ifdef NGX_BUILD
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index c4f25d5..f2bd87d 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c
@@ -4405,16 +4405,14 @@ if (clcf->root.data) { if ((clcf->alias != 0) == alias) { - ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, - "\"%V\" directive is duplicate", - &cmd->name); - } else { - ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, - "\"%V\" directive is duplicate, " - "\"%s\" directive was specified earlier", - &cmd->name, clcf->alias ? "alias" : "root"); + return "is duplicate"; } + ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, + "\"%V\" directive is duplicate, " + "\"%s\" directive was specified earlier", + &cmd->name, clcf->alias ? "alias" : "root"); + return NGX_CONF_ERROR; } @@ -4529,7 +4527,7 @@ ngx_http_core_loc_conf_t *clcf; if (pclcf->limit_except) { - return "duplicate"; + return "is duplicate"; } pclcf->limit_except = 0xffffffff;
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index d028fe1..4cbfb84 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c
@@ -2971,6 +2971,7 @@ } cl->buf = b; + cl->next = NULL; hc->busy = cl; hc->nbusy = 1;
diff --git a/src/http/ngx_http_script.c b/src/http/ngx_http_script.c index c1a0b4c..cc4d679 100644 --- a/src/http/ngx_http_script.c +++ b/src/http/ngx_http_script.c
@@ -220,7 +220,7 @@ cv = (ngx_http_complex_value_t **) (p + cmd->offset); if (*cv != NULL) { - return "duplicate"; + return "is duplicate"; } *cv = ngx_palloc(cf->pool, sizeof(ngx_http_complex_value_t));
diff --git a/src/stream/ngx_stream_script.c b/src/stream/ngx_stream_script.c index ff8e655..aa555ca 100644 --- a/src/stream/ngx_stream_script.c +++ b/src/stream/ngx_stream_script.c
@@ -222,7 +222,7 @@ cv = (ngx_stream_complex_value_t **) (p + cmd->offset); if (*cv != NULL) { - return "duplicate"; + return "is duplicate"; } *cv = ngx_palloc(cf->pool, sizeof(ngx_stream_complex_value_t));