diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-06-12 05:54:39 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-06-12 05:54:39 +0000 |
commit | 0915977df53c486abbc6081e1c83f9f8e7a8f111 (patch) | |
tree | 778b5191eed39b3043798423ccc23708e65f116f /src/http/ngx_http_event.c | |
parent | 239baac646073cab7bbaf537ba2d6ca844f2c992 (diff) | |
download | nginx-0915977df53c486abbc6081e1c83f9f8e7a8f111.tar.gz nginx-0915977df53c486abbc6081e1c83f9f8e7a8f111.zip |
nginx-0.0.1-2003-06-12-09:54:39 import
Diffstat (limited to 'src/http/ngx_http_event.c')
-rw-r--r-- | src/http/ngx_http_event.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/http/ngx_http_event.c b/src/http/ngx_http_event.c index 991b87d3b..06a98a372 100644 --- 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_event(ngx_event_t *rev) 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_handler(ngx_event_t *rev) 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; |