From d1cbc863722b6b3d6bc1eee352819096bd51ac38 Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Mon, 29 Oct 2018 17:36:43 +0300 Subject: [PATCH] Stream: marking incoming chain as processed. Previously, the buffers of proxy module were not reclaimed. This resulted in stopping the processing of new data chunks from a client after proxy_buffer_size bytes were received. --- nginx/ngx_stream_js_module.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nginx/ngx_stream_js_module.c b/nginx/ngx_stream_js_module.c index 3981c7b3..7526bc18 100644 --- a/nginx/ngx_stream_js_module.c +++ b/nginx/ngx_stream_js_module.c @@ -570,6 +570,8 @@ ngx_stream_js_body_filter(ngx_stream_session_t *s, ngx_chain_t *in, goto exception; } + ctx->buf->pos = ctx->buf->last; + } else { cl = ngx_alloc_chain_link(c->pool); if (cl == NULL) { -- 2.47.3