Mercurial > hg > nginx
diff src/http/ngx_http_request.c @ 230:1119faf4635a
nginx-0.0.1-2004-01-16-09:15:48 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 16 Jan 2004 06:15:48 +0000 |
parents | 4f81b931e9ff |
children | 03c54b6d7a6f |
line wrap: on
line diff
--- a/src/http/ngx_http_request.c Thu Jan 15 17:51:49 2004 +0000 +++ b/src/http/ngx_http_request.c Fri Jan 16 06:15:48 2004 +0000 @@ -921,18 +921,21 @@ clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); - if (r->keepalive != 0 && clcf->keepalive_timeout > 0) { + if (!ngx_terminate + && !ngx_quit + && r->keepalive != 0 + && clcf->keepalive_timeout > 0) + { ngx_http_set_keepalive(r); + return; } else if (r->lingering_close && clcf->lingering_timeout > 0) { ngx_http_set_lingering_close(r); - - } else { - ngx_http_close_request(r, 0); - ngx_http_close_connection(r->connection); + return; } - return; + ngx_http_close_request(r, 0); + ngx_http_close_connection(r->connection); }