]> git.kaiwu.me - njs.git/commit
Stream: fixed processing buffered data in body filter.
authorDmitry Volyntsev <xeioex@nginx.com>
Wed, 10 Feb 2021 14:03:11 +0000 (14:03 +0000)
committerDmitry Volyntsev <xeioex@nginx.com>
Wed, 10 Feb 2021 14:03:11 +0000 (14:03 +0000)
commit38a9486559a78c675bbdcc6435b40f447edd7c2d
treec813aa816ca5ebd1bbd1ae901ca5f28b2e9e730a
parentd3d6b67a3d5eff522c63e55af237885ac172dfe4
Stream: fixed processing buffered data in body filter.

Previously, when data was proxied to upstream, it may be partially
written and is left in upstream connection buffer.  Later, when
writing becomes possible again, the body filter is called but it
fails to call the next filter in the chain. This resulted in hanging
connection.

The fix is to take the buffered data in upstream connection into account.

This fixes #368 issue on Github.
nginx/ngx_stream_js_module.c