Welcome! Log In Create A New Profile

Advanced

[njs] Stream: fixed processing empty output chain in body filter.

Dmitry Volyntsev
May 28, 2019 10:06AM
details: https://hg.nginx.org/njs/rev/77e4b95109d4
branches:
changeset: 989:77e4b95109d4
user: Dmitry Volyntsev <xeioex@nginx.com>
date: Tue May 28 17:04:40 2019 +0300
description:
Stream: fixed processing empty output chain in body filter.

This closes #1735 on trac.

diffstat:

nginx/ngx_stream_js_module.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 6b7042a20523 -r 77e4b95109d4 nginx/ngx_stream_js_module.c
--- a/nginx/ngx_stream_js_module.c Tue May 28 17:04:33 2019 +0300
+++ b/nginx/ngx_stream_js_module.c Tue May 28 17:04:40 2019 +0300
@@ -601,7 +601,7 @@ ngx_stream_js_body_filter(ngx_stream_ses

*ctx->last_out = NULL;

- if (out != NULL) {
+ if (out != NULL || c->buffered) {
rc = ngx_stream_next_filter(s, out, from_upstream);

ngx_chain_update_chains(c->pool, &ctx->free, &ctx->busy, &out,
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] Stream: fixed processing empty output chain in body filter.

Dmitry Volyntsev 104 May 28, 2019 10:06AM



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

Online Users

Guests: 83
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready