comparison src/http/ngx_http_core_module.c @ 838:e61362d2d844

fix subrequest limit
author Igor Sysoev <igor@sysoev.ru>
date Thu, 02 Nov 2006 13:48:28 +0000
parents 3611dca3c53a
children 9ddb57468082
comparison
equal deleted inserted replaced
837:3611dca3c53a 838:e61362d2d844
1296 r->main->subrequests--; 1296 r->main->subrequests--;
1297 1297
1298 if (r->main->subrequests == 0) { 1298 if (r->main->subrequests == 0) {
1299 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, 1299 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
1300 "subrequests cycle while processing \"%V\"", uri); 1300 "subrequests cycle while processing \"%V\"", uri);
1301 r->main->subrequests = 1;
1301 return NGX_ERROR; 1302 return NGX_ERROR;
1302 } 1303 }
1303 1304
1304 sr = ngx_pcalloc(r->pool, sizeof(ngx_http_request_t)); 1305 sr = ngx_pcalloc(r->pool, sizeof(ngx_http_request_t));
1305 if (sr == NULL) { 1306 if (sr == NULL) {