# HG changeset patch # User Igor Sysoev # Date 1168360013 0 # Node ID 5900ec20604ae8241a0c63fd2bab7f72d0d7010c # Parent 7fdcb5b9f063db6afb7923c1597e52c225802280 do not count connection for subrequest diff --git a/src/http/modules/ngx_http_limit_zone_module.c b/src/http/modules/ngx_http_limit_zone_module.c --- a/src/http/modules/ngx_http_limit_zone_module.c +++ b/src/http/modules/ngx_http_limit_zone_module.c @@ -113,7 +113,7 @@ ngx_http_limit_zone_handler(ngx_http_req ngx_http_limit_zone_conf_t *lzcf; ngx_http_limit_zone_cleanup_t *lzcln; - if (r->limit_zone_set) { + if (r->main->limit_zone_set) { return NGX_DECLINED; }