Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
298:4a3f18406832 | 299:46b7eeb8a116 |
---|---|
35 if (size >= r->headers_in.content_length_n) { | 35 if (size >= r->headers_in.content_length_n) { |
36 | 36 |
37 /* the whole request body was pre-read */ | 37 /* the whole request body was pre-read */ |
38 | 38 |
39 r->header_in->pos += r->headers_in.content_length_n; | 39 r->header_in->pos += r->headers_in.content_length_n; |
40 | |
41 r->request_body->handler(r->request_body->data); | |
42 | |
40 return NGX_OK; | 43 return NGX_OK; |
41 } | 44 } |
42 | 45 |
43 r->header_in->pos = r->header_in->last; | 46 r->header_in->pos = r->header_in->last; |
44 } | 47 } |
81 ngx_connection_t *c; | 84 ngx_connection_t *c; |
82 ngx_http_request_t *r; | 85 ngx_http_request_t *r; |
83 | 86 |
84 c = rev->data; | 87 c = rev->data; |
85 r = c->data; | 88 r = c->data; |
89 | |
90 if (rev->timedout) { | |
91 ngx_http_finalize_request(r, NGX_HTTP_REQUEST_TIME_OUT); | |
92 return; | |
93 } | |
86 | 94 |
87 rc = ngx_http_do_read_client_request_body(r); | 95 rc = ngx_http_do_read_client_request_body(r); |
88 | 96 |
89 if (rc >= NGX_HTTP_SPECIAL_RESPONSE) { | 97 if (rc >= NGX_HTTP_SPECIAL_RESPONSE) { |
90 ngx_http_finalize_request(r, rc); | 98 ngx_http_finalize_request(r, rc); |