]> git.kaiwu.me - njs.git/commit
Stream: improved async callback support for s.send().
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 27 Sep 2022 00:49:39 +0000 (17:49 -0700)
committerDmitry Volyntsev <xeioex@nginx.com>
Tue, 27 Sep 2022 00:49:39 +0000 (17:49 -0700)
commit1a4cc2dbb8a2c7d3825eed7d6603e2877ac16be3
treeabd75665cc78b278ac6f4c6ec54100890a7f09f4
parent95425b271ad27470ea39d6c91ca4a614690ab12b
Stream: improved async callback support for s.send().

Previously, the "from_upstream" flag (introduced in b33aae5e8dc6) was
ignored for s.send() calls invoked directly from a body filter.
This makes the s.send() behaviour context dependent.

The fix is to always take "from_upstream" flag into account when it is
provided.

This fixed #552 issue on Github.
nginx/ngx_js.h
nginx/ngx_stream_js_module.c