Mercurial > hg > nginx-vendor-0-7
diff src/http/ngx_http_request.c @ 226:21f2ace7c936 NGINX_0_3_60
nginx 0.3.60
*) Bugfix: a worker process may got caught in an endless loop while an
error redirection; bug appeared in 0.3.59.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Fri, 18 Aug 2006 00:00:00 +0400 |
parents | 559bc7ec214e |
children | 38e7b94d63ac |
line wrap: on
line diff
--- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -424,6 +424,9 @@ ngx_http_init_request(ngx_event_t *rev) r->headers_out.content_length_n = -1; r->headers_out.last_modified_time = -1; + r->uri_changes = NGX_HTTP_MAX_URI_CHANGES + 1; + r->subrequests = NGX_HTTP_MAX_SUBREQUESTS + 1; + r->http_state = NGX_HTTP_READING_REQUEST_STATE; ctx = c->log->data; @@ -667,9 +670,6 @@ ngx_http_process_request_line(ngx_event_ c->write->handler = ngx_http_request_handler; r->read_event_handler = ngx_http_block_read; - r->uri_changes = NGX_HTTP_MAX_URI_CHANGES + 1; - r->subrequests = NGX_HTTP_MAX_SUBREQUESTS + 1; - ngx_http_handler(r); return;