Mercurial > hg > nginx-quic
changeset 6067:231a5bbd9e9c
Request body: always flush buffers if request buffering is off.
This fixes unbuffered proxying to SSL backends, since it prevents
ngx_ssl_send_chain() from accumulation of request body in the SSL
buffer.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Mon, 06 Apr 2015 19:20:36 +0300 |
parents | 657f6ec01da0 |
children | 643f2ce02f1c |
files | src/http/ngx_http_request_body.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_request_body.c +++ b/src/http/ngx_http_request_body.c @@ -949,6 +949,7 @@ ngx_http_request_body_length_filter(ngx_ b->pos = cl->buf->pos; b->last = cl->buf->last; b->end = cl->buf->end; + b->flush = r->request_body_no_buffering; size = cl->buf->last - cl->buf->pos; @@ -1056,6 +1057,7 @@ ngx_http_request_body_chunked_filter(ngx b->pos = cl->buf->pos; b->last = cl->buf->last; b->end = cl->buf->end; + b->flush = r->request_body_no_buffering; *ll = tl; ll = &tl->next;