From 4bc0dcf7017066c8921f80753e06a82b814898cb Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 8 Dec 2008 14:08:44 +0000 Subject: test duplicate limit_conn --- src/http/modules/ngx_http_limit_zone_module.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/http/modules/ngx_http_limit_zone_module.c b/src/http/modules/ngx_http_limit_zone_module.c index c7a3753d9..824803d34 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_http_limit_conn(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) 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, -- cgit