]> git.kaiwu.me - nginx.git/commitdiff
do not count connection for subrequest
authorIgor Sysoev <igor@sysoev.ru>
Tue, 9 Jan 2007 16:26:53 +0000 (16:26 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 9 Jan 2007 16:26:53 +0000 (16:26 +0000)
src/http/modules/ngx_http_limit_zone_module.c

index 07802581c7eb6b2d264cead97b432f373749b79b..396cb7fd3e47e09341844ae8da5cc4559fb16821 100644 (file)
@@ -113,7 +113,7 @@ ngx_http_limit_zone_handler(ngx_http_request_t *r)
     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;
     }