]> git.kaiwu.me - njs.git/commit
Modules: optimized memory consumption while streaming in qjs.
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 19 Aug 2025 04:21:09 +0000 (21:21 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Wed, 27 Aug 2025 01:36:30 +0000 (18:36 -0700)
commit44744d957b9958f35f18805a5acfa564e66af35f
treecee054c8c52e22ad40c6437258fa38ce68443a61
parent6842e1b8f2cf73243afdcb88b27d08fdaa861ad6
Modules: optimized memory consumption while streaming in qjs.

This allows to stream long tcp streams or large http response bodies
with low memory consumption.

This works only for qjs engine, because njs has no GC.

This fixes #943 issue on Github.
nginx/ngx_http_js_module.c
nginx/ngx_stream_js_module.c