comparison src/http/ngx_http_request.c @ 451:670af56a1158 NGINX_0_7_33

nginx 0.7.33 *) Bugfix: a double response might be returned if the epoll or rtsig methods are used and a redirect was returned to a request with body. Thanks to Eden Li. *) Bugfix: the $sent_http_location variable was empty for some redirects types. *) Bugfix: a segmentation fault might occur in worker process if "resolver" directive was used in SMTP proxy.
author Igor Sysoev <http://sysoev.ru>
date Mon, 02 Feb 2009 00:00:00 +0300
parents dac47e9ef0d5
children 76a79816b771
comparison
equal deleted inserted replaced
450:52bbf0e6dfad 451:670af56a1158
2183 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); 2183 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
2184 2184
2185 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, "set http keepalive handler"); 2185 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, "set http keepalive handler");
2186 2186
2187 if (r->discard_body) { 2187 if (r->discard_body) {
2188 r->write_event_handler = ngx_http_request_empty_handler;
2188 r->lingering_time = ngx_time() + (time_t) (clcf->lingering_time / 1000); 2189 r->lingering_time = ngx_time() + (time_t) (clcf->lingering_time / 1000);
2189 ngx_add_timer(rev, clcf->lingering_timeout); 2190 ngx_add_timer(rev, clcf->lingering_timeout);
2190 return; 2191 return;
2191 } 2192 }
2192 2193