]> git.kaiwu.me - njs.git/commit
Modules: fix js_periodic worker affinity parsing
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 15 Sep 2026 22:24:06 +0000 (15:24 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Wed, 16 Sep 2026 21:17:38 +0000 (14:17 -0700)
commitc5e6b51c404f022feb54cd34b5f2d5708a4878ac
tree5aa8dd8720362f21ce5b1574aaca68036017281c
parent2658a79dad993cf67e535085451fbfb9e33fb787
Modules: fix js_periodic worker affinity parsing

Previously, worker_affinity parsing reused the directive option index. This
skipped options after worker_affinity in HTTP and stream configurations.

The fix is to use a separate index while parsing the affinity mask.
nginx/ngx_http_js_module.c
nginx/ngx_stream_js_module.c
nginx/t/js_periodic.t
nginx/t/stream_js_periodic.t