]> git.kaiwu.me - nginx.git/commitdiff
Fix for connection drops with AIO.
authorMaxim Dounin <mdounin@mdounin.ru>
Tue, 11 Oct 2011 17:58:51 +0000 (17:58 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Tue, 11 Oct 2011 17:58:51 +0000 (17:58 +0000)
Connections serving content with AIO to fast clients were dropped with
"client timed out" messages after send_timeout from response start.

src/http/ngx_http_request.c

index ac54b1f5ad85e129bca87321bbcf93d7e285ae16..c1f806ab6bb7c8cc48e762c4b0376a64e29bb91b 100644 (file)
@@ -2274,7 +2274,7 @@ ngx_http_writer(ngx_http_request_t *r)
 
     if (r->buffered || r->postponed || (r == r->main && c->buffered)) {
 
-        if (!wev->ready && !wev->delayed) {
+        if (!wev->delayed) {
             ngx_add_timer(wev, clcf->send_timeout);
         }