mirror of
https://github.com/nginx/nginx.git
synced 2025-01-23 23:03:18 -06:00
always set timer in discard body handler, this fixes the cases
when request for static file is redirected by error_page to an SSI page patch by Maxim Dounin
This commit is contained in:
parent
2505587b4d
commit
21fd22d089
@ -2123,11 +2123,11 @@ ngx_http_finalize_connection(ngx_http_request_t *r)
|
||||
|
||||
if (r->discard_body) {
|
||||
r->read_event_handler = ngx_http_discarded_request_body_handler;
|
||||
ngx_add_timer(r->connection->read, clcf->lingering_timeout);
|
||||
|
||||
if (r->lingering_time == 0) {
|
||||
r->lingering_time = ngx_time()
|
||||
+ (time_t) (clcf->lingering_time / 1000);
|
||||
ngx_add_timer(r->connection->read, clcf->lingering_timeout);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user