]> git.kaiwu.me - nginx.git/commitdiff
fix subrequest limit
authorIgor Sysoev <igor@sysoev.ru>
Thu, 2 Nov 2006 13:48:28 +0000 (13:48 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 2 Nov 2006 13:48:28 +0000 (13:48 +0000)
src/http/ngx_http_core_module.c

index 2b4f56fa51c9feda928b204e414ebb3fb6db8954..ff933481fa47727abe3ded32547a0155b374f317 100644 (file)
@@ -1298,6 +1298,7 @@ ngx_http_subrequest(ngx_http_request_t *r,
     if (r->main->subrequests == 0) {
         ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
                       "subrequests cycle while processing \"%V\"", uri);
+        r->main->subrequests = 1;
         return NGX_ERROR;
     }