[nginx] Limit req: removed check for unknown limit_req_zone.

Sergey Kandaurov pluknet at nginx.com
Mon Apr 20 13:59:44 UTC 2015


details:   http://hg.nginx.org/nginx/rev/3b7a60371a9a
branches:  
changeset: 6117:3b7a60371a9a
user:      Sergey Kandaurov <pluknet at nginx.com>
date:      Mon Apr 20 16:54:41 2015 +0300
description:
Limit req: removed check for unknown limit_req_zone.

With 48b3d5ddfb03, it's possible to specify limit_req_zone after limit_req.

diffstat:

 src/http/modules/ngx_http_limit_req_module.c |  7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diffs (17 lines):

diff -r 48b3d5ddfb03 -r 3b7a60371a9a src/http/modules/ngx_http_limit_req_module.c
--- a/src/http/modules/ngx_http_limit_req_module.c	Mon Apr 20 16:53:04 2015 +0300
+++ b/src/http/modules/ngx_http_limit_req_module.c	Mon Apr 20 16:54:41 2015 +0300
@@ -919,13 +919,6 @@ ngx_http_limit_req(ngx_conf_t *cf, ngx_c
         return NGX_CONF_ERROR;
     }
 
-    if (shm_zone->data == NULL) {
-        ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
-                           "unknown limit_req_zone \"%V\"",
-                           &shm_zone->shm.name);
-        return NGX_CONF_ERROR;
-    }
-
     limits = lrcf->limits.elts;
 
     if (limits == NULL) {



More information about the nginx-devel mailing list