changeset 997:5900ec20604a

do not count connection for subrequest
author Igor Sysoev <igor@sysoev.ru>
date Tue, 09 Jan 2007 16:26:53 +0000
parents 7fdcb5b9f063
children 6d1fcec2ea79
files src/http/modules/ngx_http_limit_zone_module.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
     }