]> git.kaiwu.me - njs.git/commit
Stream: fixed CPU hog when js_filter is registered in both directions.
authorMiao Wang <shankerwangmiao@gmail.com>
Wed, 11 Aug 2021 03:44:12 +0000 (11:44 +0800)
committerMiao Wang <shankerwangmiao@gmail.com>
Wed, 11 Aug 2021 03:44:12 +0000 (11:44 +0800)
commitbeba525d01e12b2165a7c98c4353f8f2dd2ab778
treef8d4ccc65a395477586ff304f345756bbc2acc1a
parentd24a11a0fc348bfd8285f3340daa1e579e143cf5
Stream: fixed CPU hog when js_filter is registered in both directions.

Previously, a single busy chain was used to track filtered data in both
directions.  This might lead to a situation when busy chunks are not
freed properly and pile up.

The fix is to separate busy chain for upstream and downstream directions.

This closes #413 issue on Github.
nginx/ngx_stream_js_module.c