]> git.kaiwu.me - njs.git/commit
Stream: fixed exception classes
authorDmitry Volyntsev <xeioex@nginx.com>
Wed, 3 Jun 2026 02:07:08 +0000 (19:07 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Wed, 3 Jun 2026 21:34:17 +0000 (14:34 -0700)
commitbce77d44c0959d1a63934f04e4ae2ed86cda6819
treece0a8922b27e4b7de4636673e20349908cddbcce
parent78d4ea53331273e2729576afaf067544dcc67b49
Stream: fixed exception classes

Report stream session API misuse as TypeError, including wrong receiver,
unknown or duplicate event handlers, wrong handler phase, and invalid variable
access.  Report status bounds violations as RangeError and keep stream output
pipeline failures as InternalError.

Also fix the async send error message spacing.
nginx/ngx_stream_js_module.c
nginx/t/stream_js.t
nginx/t/stream_js_buffer.t