Welcome! Log In Create A New Profile

Advanced

[PATCH 3 of 4] Fix connection drops with AIO

Maxim Dounin
October 11, 2010 09:06AM
# HG changeset patch
# User Maxim Dounin <mdounin@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);
}


_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH 3 of 4] Fix connection drops with AIO

Maxim Dounin 2397 October 11, 2010 09:06AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 195
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready