Mercurial > hg > nginx-quic
diff src/http/ngx_http_request_body.c @ 299:46b7eeb8a116
nginx-0.0.3-2004-03-30-19:59:50 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 30 Mar 2004 15:59:50 +0000 |
parents | ee394e997c77 |
children | 00c5660d2707 |
line wrap: on
line diff
--- 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_b /* 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 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) {