allow discarding body while a long response transfer

This commit is contained in:
Igor Sysoev 2009-10-19 16:13:38 +00:00
parent c611788bf6
commit 34291eede6

View file

@ -2145,7 +2145,9 @@ ngx_http_set_write_handler(ngx_http_request_t *r)
r->http_state = NGX_HTTP_WRITING_REQUEST_STATE;
r->read_event_handler = ngx_http_test_reading;
r->read_event_handler = r->discard_body ?
ngx_http_discarded_request_body_handler:
ngx_http_test_reading;
r->write_event_handler = ngx_http_writer;
wev = r->connection->write;