Mercurial > hg > nginx
diff src/http/modules/ngx_http_limit_zone_module.c @ 2372:7148efbdd798
test duplicate limit_conn
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 08 Dec 2008 14:08:44 +0000 |
parents | 4fc402c3ec73 |
children | f4603d71f532 |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_limit_zone_module.c Mon Dec 08 14:05:21 2008 +0000 +++ b/src/http/modules/ngx_http_limit_zone_module.c Mon Dec 08 14:08:44 2008 +0000 @@ -462,6 +462,10 @@ 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,