Welcome! Log In Create A New Profile

Advanced

[njs] Stream: marking incoming chain as processed.

Dmitry Volyntsev
October 29, 2018 12:50PM
details: http://hg.nginx.org/njs/rev/647de74fd2c7
branches:
changeset: 631:647de74fd2c7
user: Dmitry Volyntsev <xeioex@nginx.com>
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
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] Stream: marking incoming chain as processed.

Dmitry Volyntsev 275 October 29, 2018 12:50PM



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

Online Users

Guests: 302
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready