mirror of
https://github.com/nginx/nginx.git
synced 2025-06-09 19:12:47 +08:00
allow discarding body while a long response transfer
This commit is contained in:
parent
801a35df3c
commit
9a1f0ac730
@ -2145,7 +2145,9 @@ ngx_http_set_write_handler(ngx_http_request_t *r)
|
|||||||
|
|
||||||
r->http_state = NGX_HTTP_WRITING_REQUEST_STATE;
|
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;
|
r->write_event_handler = ngx_http_writer;
|
||||||
|
|
||||||
wev = r->connection->write;
|
wev = r->connection->write;
|
||||||
|
Loading…
Reference in New Issue
Block a user