comparison src/http/ngx_http_request.c @ 2647:76add0af8e21 stable-0.6

r2490 merge: 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
author Igor Sysoev <igor@sysoev.ru>
date Wed, 01 Apr 2009 16:28:06 +0000
parents 3a79007edf41
children 567028e737cc
comparison
equal deleted inserted replaced
2646:f4aea5b40fd7 2647:76add0af8e21
2088 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); 2088 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
2089 2089
2090 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, "set http keepalive handler"); 2090 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, "set http keepalive handler");
2091 2091
2092 if (r->discard_body) { 2092 if (r->discard_body) {
2093 r->write_event_handler = ngx_http_request_empty_handler;
2093 r->lingering_time = ngx_time() + (time_t) (clcf->lingering_time / 1000); 2094 r->lingering_time = ngx_time() + (time_t) (clcf->lingering_time / 1000);
2094 ngx_add_timer(rev, clcf->lingering_timeout); 2095 ngx_add_timer(rev, clcf->lingering_timeout);
2095 return; 2096 return;
2096 } 2097 }
2097 2098