mirror of
https://github.com/nginx/nginx.git
synced 2025-08-05 22:26:15 +08:00
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.
This commit is contained in:
parent
1329c4af80
commit
3f72e18908
@ -949,6 +949,7 @@ ngx_http_request_body_length_filter(ngx_http_request_t *r, ngx_chain_t *in)
|
||||
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_http_request_t *r, ngx_chain_t *in)
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user