[PATCH 3 of 4] Fix connection drops with AIO

Maxim Dounin mdounin at mdounin.ru
Mon Oct 11 17:03:22 MSD 2010


# HG changeset patch
# User Maxim Dounin <mdounin at mdounin.ru>
# Date 1286674237 -14400
# Node ID 459f0c3a1d028c96bd122fe7424a2325273f1fce
# Parent  df8478252f31d878b6dc0082a425c9398649df2b
Fix 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.

diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -2244,7 +2244,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);
         }
 



More information about the nginx-devel mailing list