Mercurial > hg > nginx
diff src/http/ngx_http_event.c @ 104:7db96f59bc29
nginx-0.0.1-2003-06-12-09:54:39 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 12 Jun 2003 05:54:39 +0000 |
parents | 6dfda4cf5200 |
children | ac69ab96328d |
line wrap: on
line diff
--- a/src/http/ngx_http_event.c +++ b/src/http/ngx_http_event.c @@ -1035,8 +1035,7 @@ static void ngx_http_read_discarded_body static int ngx_http_read_discarded_body(ngx_http_request_t *r) { - size_t size; - ssize_t n; + ssize_t size, n; ngx_http_core_loc_conf_t *clcf; ngx_log_debug(r->connection->log, "http read discarded body"); @@ -1318,7 +1317,7 @@ static void ngx_http_lingering_close_han or the end of parsed header (otherwise) instead of r->header_in->last */ - if ((size_t)(r->header_in->end - r->header_in->last) + if (r->header_in->end - r->header_in->last >= clcf->discarded_buffer_size) { r->discarded_buffer = r->header_in->last;