details:   http://hg.nginx.org/njs/rev/647de74fd2c7
branches:  
changeset: 631:647de74fd2c7
user:      Dmitry Volyntsev <[email protected]>
date:      Mon Oct 29 17:36:43 2018 +0300
description:
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.

diffstat:

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

diffs (12 lines):

diff -r 72539416c466 -r 647de74fd2c7 nginx/ngx_stream_js_module.c
--- a/nginx/ngx_stream_js_module.c      Tue Oct 23 20:40:08 2018 +0300
+++ b/nginx/ngx_stream_js_module.c      Mon Oct 29 17:36:43 2018 +0300
@@ -570,6 +570,8 @@ ngx_stream_js_body_filter(ngx_stream_ses
                 goto exception;
             }
 
+            ctx->buf->pos = ctx->buf->last;
+
         } else {
             cl = ngx_alloc_chain_link(c->pool);
             if (cl == NULL) {
_______________________________________________
nginx-devel mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx-devel

Reply via email to