| commit | 4bc0dcf7017066c8921f80753e06a82b814898cb | [log] [tgz] |
|---|---|---|
| author | Igor Sysoev <igor@sysoev.ru> | Mon Dec 08 14:08:44 2008 +0000 |
| committer | Igor Sysoev <igor@sysoev.ru> | Mon Dec 08 14:08:44 2008 +0000 |
| tree | 369c73f4e18665905837f15451d6783627f56ee2 | |
| parent | 51fad316cdde730c08008ad775c519fb6aa446ad [diff] |
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 index c7a3753..824803d 100644 --- 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_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,