Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
229:ce6b72fe33fe | 230:1119faf4635a |
---|---|
919 return; | 919 return; |
920 } | 920 } |
921 | 921 |
922 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); | 922 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); |
923 | 923 |
924 if (r->keepalive != 0 && clcf->keepalive_timeout > 0) { | 924 if (!ngx_terminate |
925 && !ngx_quit | |
926 && r->keepalive != 0 | |
927 && clcf->keepalive_timeout > 0) | |
928 { | |
925 ngx_http_set_keepalive(r); | 929 ngx_http_set_keepalive(r); |
930 return; | |
926 | 931 |
927 } else if (r->lingering_close && clcf->lingering_timeout > 0) { | 932 } else if (r->lingering_close && clcf->lingering_timeout > 0) { |
928 ngx_http_set_lingering_close(r); | 933 ngx_http_set_lingering_close(r); |
929 | 934 return; |
930 } else { | 935 } |
931 ngx_http_close_request(r, 0); | 936 |
932 ngx_http_close_connection(r->connection); | 937 ngx_http_close_request(r, 0); |
933 } | 938 ngx_http_close_connection(r->connection); |
934 | |
935 return; | |
936 } | 939 } |
937 | 940 |
938 | 941 |
939 static void ngx_http_set_write_handler(ngx_http_request_t *r) | 942 static void ngx_http_set_write_handler(ngx_http_request_t *r) |
940 { | 943 { |