From: Dmitry Volyntsev Date: Tue, 28 May 2019 14:04:40 +0000 (+0300) Subject: Stream: fixed processing empty output chain in body filter. X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=4d02559f1ac65b2bbfd78184ed21116fc849835e;p=njs.git Stream: fixed processing empty output chain in body filter. This closes #1735 on trac. --- diff --git a/nginx/ngx_stream_js_module.c b/nginx/ngx_stream_js_module.c index bdba8bf6..4375ae1a 100644 --- a/nginx/ngx_stream_js_module.c +++ b/nginx/ngx_stream_js_module.c @@ -601,7 +601,7 @@ ngx_stream_js_body_filter(ngx_stream_session_t *s, ngx_chain_t *in, *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,