test duplicate limit_conn

This commit is contained in:
Igor Sysoev 2008-12-08 14:08:44 +00:00
parent 51fad316cd
commit 4bc0dcf701

View File

@ -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,