summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_request_body.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-12-06 14:45:08 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-12-06 14:45:08 +0000
commit6a12fc91b0090b5628dc70d4a45db576c5b0c64a (patch)
treef473f81772c058b7488ac4030c3ff09994c6c532 /src/http/ngx_http_request_body.c
parentc372e09ab34ec8c4f60f8c08ef30b297c0e475ab (diff)
downloadnginx-release-0.1.12.tar.gz
nginx-release-0.1.12.tar.bz2
nginx-0.1.12-RELEASE importrelease-0.1.12
*) Feature: the %request_length log parameter. *) Bugfix: when using the /dev/poll, select and poll on the platforms, where these methods may do the false reports, there may be the long delay when the request was passed via the keep-alive connection. It may be at least on Solaris when using the /dev/poll. *) Bugfix: the send_lowat directive is ignored on Linux because Linux does not support the SO_SNDLOWAT option.
Diffstat (limited to '')
-rw-r--r--src/http/ngx_http_request_body.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c
index c9ec6fa07..eb6aebfc6 100644
--- a/src/http/ngx_http_request_body.c
+++ b/src/http/ngx_http_request_body.c
@@ -42,6 +42,7 @@ ngx_int_t ngx_http_read_client_request_body(ngx_http_request_t *r)
/* the whole request body was pre-read */
r->header_in->pos += r->headers_in.content_length_n;
+ r->request_length += r->headers_in.content_length_n;
r->request_body->handler(r->request_body->data);
@@ -49,6 +50,7 @@ ngx_int_t ngx_http_read_client_request_body(ngx_http_request_t *r)
}
r->header_in->pos = r->header_in->last;
+ r->request_length += size;
}
@@ -173,6 +175,7 @@ static ngx_int_t ngx_http_do_read_client_request_body(ngx_http_request_t *r)
r->request_body->buf->last += n;
r->request_body->rest -= n;
+ r->request_length += n;
if (r->request_body->rest == 0) {
break;