diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-08-27 15:40:19 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-08-27 15:40:19 +0000 |
commit | db7b126db2c23ba5520cd786a2b40013d559960f (patch) | |
tree | e55ffd48303acbc246f424574fdeff979add2ddc /src/http/ngx_http_request.c | |
parent | fe8137af4b206599423eb937bb5b1bd6b2edab21 (diff) | |
download | nginx-db7b126db2c23ba5520cd786a2b40013d559960f.tar.gz nginx-db7b126db2c23ba5520cd786a2b40013d559960f.zip |
cancel keep-alive and lingering close on EOF
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r-- | src/http/ngx_http_request.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index f52a764e4..4d60d1381 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -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 |