mirror of
https://github.com/nginx/nginx.git
synced 2025-08-06 14:56:15 +08:00
test duplicate limit_conn
This commit is contained in:
parent
51fad316cd
commit
4bc0dcf701
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user