Klaus Demo nginx / 32856e1
avoid a double redirect response if *) a request is going in a keep alive state, *) the request body should be discarded, *) epoll/rtsig reports about the response header has been sent, *) and write event handler calls core phase handler Igor Sysoev 13 years ago
1 changed file(s) with 1 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
21842184 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, "set http keepalive handler");
21852185
21862186 if (r->discard_body) {
2187 r->write_event_handler = ngx_http_request_empty_handler;
21872188 r->lingering_time = ngx_time() + (time_t) (clcf->lingering_time / 1000);
21882189 ngx_add_timer(rev, clcf->lingering_timeout);
21892190 return;