Klaus Demo nginx / 21fd22d
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 Igor Sysoev 10 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
21222122
21232123 if (r->discard_body) {
21242124 r->read_event_handler = ngx_http_discarded_request_body_handler;
2125 ngx_add_timer(r->connection->read, clcf->lingering_timeout);
21252126
21262127 if (r->lingering_time == 0) {
21272128 r->lingering_time = ngx_time()
21282129 + (time_t) (clcf->lingering_time / 1000);
2129 ngx_add_timer(r->connection->read, clcf->lingering_timeout);
21302130 }
21312131 }
21322132