Welcome! Log In Create A New Profile

Advanced

[nginx] Request body: always flush buffers if request buffering ...

Valentin Bartenev
April 06, 2015 12:22PM
details: http://hg.nginx.org/nginx/rev/231a5bbd9e9c
branches:
changeset: 6067:231a5bbd9e9c
user: Valentin Bartenev <vbart@nginx.com>
date: Mon Apr 06 19:20:36 2015 +0300
description:
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.

diffstat:

src/http/ngx_http_request_body.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r 657f6ec01da0 -r 231a5bbd9e9c src/http/ngx_http_request_body.c
--- a/src/http/ngx_http_request_body.c Mon Apr 06 11:22:24 2015 +0300
+++ b/src/http/ngx_http_request_body.c Mon Apr 06 19:20:36 2015 +0300
@@ -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;

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Request body: always flush buffers if request buffering ...

Valentin Bartenev 429 April 06, 2015 12:22PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 312
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready