From: Dmitry Volyntsev Date: Mon, 29 Oct 2018 14:36:43 +0000 (+0300) Subject: Stream: marking incoming chain as processed. X-Git-Tag: 0.2.5~2 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=d1cbc863722b6b3d6bc1eee352819096bd51ac38;p=njs.git 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. --- 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) {