]> git.kaiwu.me - nginx.git/commitdiff
cancel keep-alive and lingering close on EOF
authorIgor Sysoev <igor@sysoev.ru>
Mon, 27 Aug 2007 15:40:19 +0000 (15:40 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 27 Aug 2007 15:40:19 +0000 (15:40 +0000)
src/http/ngx_http_request.c

index f52a764e4edb5f1e5dae8d80818067b4e9a97a08..4d60d1381d41733fe7f2cb4a0b071e6c6d2b554a 100644 (file)
@@ -1712,6 +1712,11 @@ ngx_http_finalize_request(ngx_http_request_t *r, ngx_int_t rc)
         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