# HG changeset patch # User Igor Sysoev # Date 1228745324 0 # Node ID 7148efbdd7980c423c5d4d9b4ff187758817c33a # Parent b438ffe54e342dc82f547aaea38a5bcb63b829c0 test duplicate limit_conn diff --git a/src/http/modules/ngx_http_limit_zone_module.c b/src/http/modules/ngx_http_limit_zone_module.c --- a/src/http/modules/ngx_http_limit_zone_module.c +++ b/src/http/modules/ngx_http_limit_zone_module.c @@ -462,6 +462,10 @@ ngx_http_limit_conn(ngx_conf_t *cf, ngx_ ngx_int_t n; ngx_str_t *value; + if (lzcf->shm_zone) { + return "is duplicate"; + } + value = cf->args->elts; lzcf->shm_zone = ngx_shared_memory_add(cf, &value[1], 0,