summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_request_body.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-03-30 15:59:50 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-03-30 15:59:50 +0000
commit6707ba90729c615ffa5bf5ea81b8d32c3d8bd6e4 (patch)
tree19d36a0fce05c80c6924e9eaf686b1fbd035662b /src/http/ngx_http_request_body.c
parent6881bfb99063e3d42abaa313641b311c6fc3522d (diff)
downloadnginx-6707ba90729c615ffa5bf5ea81b8d32c3d8bd6e4.tar.gz
nginx-6707ba90729c615ffa5bf5ea81b8d32c3d8bd6e4.tar.bz2
nginx-0.0.3-2004-03-30-19:59:50 import
Diffstat (limited to 'src/http/ngx_http_request_body.c')
-rw-r--r--src/http/ngx_http_request_body.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c
index c54674eb9..9f1260c6f 100644
--- a/src/http/ngx_http_request_body.c
+++ b/src/http/ngx_http_request_body.c
@@ -37,6 +37,9 @@ 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_body->handler(r->request_body->data);
+
return NGX_OK;
}
@@ -84,6 +87,11 @@ static void ngx_http_read_client_request_body_handler(ngx_event_t *rev)
c = rev->data;
r = c->data;
+ if (rev->timedout) {
+ ngx_http_finalize_request(r, NGX_HTTP_REQUEST_TIME_OUT);
+ return;
+ }
+
rc = ngx_http_do_read_client_request_body(r);
if (rc >= NGX_HTTP_SPECIAL_RESPONSE) {