comparison src/http/ngx_http_request.c @ 4194:7ce8f2cde0af

Fix for connection drops with AIO. Connections serving content with AIO to fast clients were dropped with "client timed out" messages after send_timeout from response start.
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 11 Oct 2011 17:58:51 +0000
parents 4e1a489c26cd
children 35f4997c08ce
comparison
equal deleted inserted replaced
4193:63aa6ab94630 4194:7ce8f2cde0af
2272 return; 2272 return;
2273 } 2273 }
2274 2274
2275 if (r->buffered || r->postponed || (r == r->main && c->buffered)) { 2275 if (r->buffered || r->postponed || (r == r->main && c->buffered)) {
2276 2276
2277 if (!wev->ready && !wev->delayed) { 2277 if (!wev->delayed) {
2278 ngx_add_timer(wev, clcf->send_timeout); 2278 ngx_add_timer(wev, clcf->send_timeout);
2279 } 2279 }
2280 2280
2281 if (ngx_handle_write_event(wev, clcf->send_lowat) != NGX_OK) { 2281 if (ngx_handle_write_event(wev, clcf->send_lowat) != NGX_OK) {
2282 ngx_http_close_request(r, 0); 2282 ngx_http_close_request(r, 0);