# HG changeset patch # User Igor Sysoev # Date 1162475308 0 # Node ID e61362d2d84410aa5d82c789e2b8b6f8593b72ae # Parent 3611dca3c53a38b92255aeb712854e0b86d6a500 fix subrequest limit diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -1298,6 +1298,7 @@ ngx_http_subrequest(ngx_http_request_t * 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; }