comparison src/http/ngx_http_request.c @ 3983:e126d997cbc6

do not send RST on normal lingering close read timeout, if reset_timedout_connection is on patch by Maxim Dounin
author Igor Sysoev <igor@sysoev.ru>
date Mon, 01 Aug 2011 13:08:03 +0000
parents 77604e9a1ed8
children 3e51832c8215
comparison
equal deleted inserted replaced
3982:aab3889c41e9 3983:e126d997cbc6
2771 2771
2772 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, 2772 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0,
2773 "http lingering close handler"); 2773 "http lingering close handler");
2774 2774
2775 if (rev->timedout) { 2775 if (rev->timedout) {
2776 c->timedout = 1;
2777 ngx_http_close_request(r, 0); 2776 ngx_http_close_request(r, 0);
2778 return; 2777 return;
2779 } 2778 }
2780 2779
2781 timer = (ngx_msec_t) (r->lingering_time - ngx_time()); 2780 timer = (ngx_msec_t) (r->lingering_time - ngx_time());