Mercurial > hg > nginx
changeset 1455:7f2adaebb81f
fix socket leak introduced in r1374 when request header and body was
in one packet and connection went to keep-alive state
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sat, 01 Sep 2007 16:40:19 +0000 |
parents | f497ed7682a7 |
children | 698ea64f71e1 |
files | src/http/ngx_http_request_body.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_request_body.c Sat Sep 01 12:12:48 2007 +0000 +++ b/src/http/ngx_http_request_body.c Sat Sep 01 16:40:19 2007 +0000 @@ -446,8 +446,6 @@ return NGX_OK; } - r->discard_body = 1; - size = r->header_in->last - r->header_in->pos; if (size) { @@ -461,6 +459,8 @@ } } + r->discard_body = 1; + r->read_event_handler = ngx_http_read_discarded_request_body_handler; if (ngx_handle_read_event(rev, 0) == NGX_ERROR) {