diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-12-08 14:08:44 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-12-08 14:08:44 +0000 |
commit | 4bc0dcf7017066c8921f80753e06a82b814898cb (patch) | |
tree | 369c73f4e18665905837f15451d6783627f56ee2 /src | |
parent | 51fad316cdde730c08008ad775c519fb6aa446ad (diff) | |
download | nginx-4bc0dcf7017066c8921f80753e06a82b814898cb.tar.gz nginx-4bc0dcf7017066c8921f80753e06a82b814898cb.zip |
test duplicate limit_conn
Diffstat (limited to 'src')
-rw-r--r-- | src/http/modules/ngx_http_limit_zone_module.c | 4 |
1 files changed, 4 insertions, 0 deletions
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, |