]> git.kaiwu.me - nginx.git/commitdiff
Fixed limit_req burst/nodelay inheritance (ticket #76).
authorMaxim Dounin <mdounin@mdounin.ru>
Wed, 11 Jan 2012 11:09:05 +0000 (11:09 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Wed, 11 Jan 2012 11:09:05 +0000 (11:09 +0000)
The problem was introduced in r4381 (1.1.12).

src/http/modules/ngx_http_limit_req_module.c

index 865f7666dba6c0b78f37f5b5f805e3abdcdd57af..779b397c2dd3e00626e20a71056e2055e22ac165 100644 (file)
@@ -570,6 +570,8 @@ ngx_http_limit_req_merge_conf(ngx_conf_t *cf, void *parent, void *child)
 
     if (conf->shm_zone == NULL) {
         conf->shm_zone = prev->shm_zone;
+        conf->burst = prev->burst;
+        conf->nodelay = prev->nodelay;
     }
 
     ngx_conf_merge_uint_value(conf->limit_log_level, prev->limit_log_level,