Mercurial > hg > nginx
comparison src/http/ngx_http_request.c @ 326:8733703a37f3
nginx-0.0.3-2004-04-26-00:13:21 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 25 Apr 2004 20:13:21 +0000 |
parents | ba876b26b76d |
children | fb4dfb2ac0fc |
comparison
equal
deleted
inserted
replaced
325:7c3323909107 | 326:8733703a37f3 |
---|---|
989 } | 989 } |
990 | 990 |
991 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); | 991 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); |
992 | 992 |
993 if (!ngx_terminate | 993 if (!ngx_terminate |
994 && !ngx_quit | 994 && !ngx_exiting |
995 && r->keepalive != 0 | 995 && r->keepalive != 0 |
996 && clcf->keepalive_timeout > 0) | 996 && clcf->keepalive_timeout > 0) |
997 { | 997 { |
998 ngx_http_set_keepalive(r); | 998 ngx_http_set_keepalive(r); |
999 return; | 999 return; |
1580 ngx_log_error(NGX_LOG_ALERT, log, ngx_errno, | 1580 ngx_log_error(NGX_LOG_ALERT, log, ngx_errno, |
1581 ngx_close_file_n " \"%s\" failed", r->file.name.data); | 1581 ngx_close_file_n " \"%s\" failed", r->file.name.data); |
1582 } | 1582 } |
1583 } | 1583 } |
1584 | 1584 |
1585 if (r->request_body | |
1586 && r->request_body->temp_file | |
1587 && r->request_body->temp_file->file.fd != NGX_INVALID_FILE) | |
1588 { | |
1589 if (ngx_close_file(r->request_body->temp_file->file.fd) | |
1590 == NGX_FILE_ERROR) | |
1591 { | |
1592 ngx_log_error(NGX_LOG_ALERT, log, ngx_errno, | |
1593 ngx_close_file_n " deleted file \"%s\" failed", | |
1594 r->request_body->temp_file->file.name.data); | |
1595 } | |
1596 } | |
1597 | |
1585 /* ctx->url was allocated from r->pool */ | 1598 /* ctx->url was allocated from r->pool */ |
1586 ctx = log->data; | 1599 ctx = log->data; |
1587 ctx->url = NULL; | 1600 ctx->url = NULL; |
1588 | 1601 |
1589 ngx_destroy_pool(r->pool); | 1602 ngx_destroy_pool(r->pool); |