]> git.kaiwu.me - nginx.git/commit
Request body: unbuffered reading.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 23 Mar 2015 18:09:19 +0000 (21:09 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 23 Mar 2015 18:09:19 +0000 (21:09 +0300)
commit2743bb68ee2e012a45d5084ccfea43b8bcb82eda
treeff34977446ff5ede088c3321136be352855fd102
parentd02d2cff9b26e87340e57b70dd534dbadd3ff876
Request body: unbuffered reading.

The r->request_body_no_buffering flag was introduced.  It instructs
client request body reading code to avoid reading the whole body, and
to call post_handler early instead.  The caller should use the
ngx_http_read_unbuffered_request_body() function to read remaining
parts of the body.

Upstream module is now able to use this mode, if configured with
the proxy_request_buffering directive.
src/http/modules/ngx_http_proxy_module.c
src/http/ngx_http.h
src/http/ngx_http_request.c
src/http/ngx_http_request.h
src/http/ngx_http_request_body.c
src/http/ngx_http_upstream.c
src/http/ngx_http_upstream.h
src/http/ngx_http_variables.c