Welcome! Log In Create A New Profile

Advanced

[nginx] svn commit: r4381 - trunk/src/http/modules

Anonymous User
December 25, 2011 02:34PM
Author: vbart
Date: 2011-12-25 19:32:31 +0000 (Sun, 25 Dec 2011)
New Revision: 4381

Log:
Fixed limit_conn_log_level/limit_req_log_level inheritance.

The directives did not work if there were no limit_conn/limit_req specified on
the same level.


Modified:
trunk/src/http/modules/ngx_http_limit_conn_module.c
trunk/src/http/modules/ngx_http_limit_req_module.c

Modified: trunk/src/http/modules/ngx_http_limit_conn_module.c
===================================================================
--- trunk/src/http/modules/ngx_http_limit_conn_module.c 2011-12-25 19:15:56 UTC (rev 4380)
+++ trunk/src/http/modules/ngx_http_limit_conn_module.c 2011-12-25 19:32:31 UTC (rev 4381)
@@ -483,7 +483,7 @@
ngx_http_limit_conn_conf_t *conf = child;

if (conf->limits.elts == NULL) {
- *conf = *prev;
+ conf->limits = prev->limits;
}

ngx_conf_merge_uint_value(conf->log_level, prev->log_level, NGX_LOG_ERR);

Modified: trunk/src/http/modules/ngx_http_limit_req_module.c
===================================================================
--- trunk/src/http/modules/ngx_http_limit_req_module.c 2011-12-25 19:15:56 UTC (rev 4380)
+++ trunk/src/http/modules/ngx_http_limit_req_module.c 2011-12-25 19:32:31 UTC (rev 4381)
@@ -569,7 +569,7 @@
ngx_http_limit_req_conf_t *conf = child;

if (conf->shm_zone == NULL) {
- *conf = *prev;
+ conf->shm_zone = prev->shm_zone;
}

ngx_conf_merge_uint_value(conf->limit_log_level, prev->limit_log_level,

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

[nginx] svn commit: r4381 - trunk/src/http/modules

Anonymous User 1055 December 25, 2011 02:34PM



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

Online Users

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