allow discarding body while a long response transfer
This commit is contained in:
parent
c611788bf6
commit
34291eede6
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue