# HG changeset patch # User Igor Sysoev # Date 1188229219 0 # Node ID 75e908236701379b2e80ddc0126b8bb18d055c08 # Parent 65dd057f71c756abf11cee97517361ea60b7af9e cancel keep-alive and lingering close on EOF 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 @@ -1712,6 +1712,11 @@ ngx_http_finalize_request(ngx_http_reque return; } + if (r->connection->read->eof) { + ngx_http_close_request(r, 0); + return; + } + clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); if (!ngx_terminate