Files
PaperClipAI/server
Priya RamanandPaperclip cba31a8505 fix(server): make the null-socket guard registration idempotent
registerPostgresNullSocketGuard() added one uncaughtException listener
on every call. A caller that runs it many times in one process, such
as a test suite that calls startServer() repeatedly, crossed Node's
default listener-count warning threshold. Skip the process.on call
when the guard's own listener function is already registered.

Also extend the unrelated-crash fixture scenario to assert the child
process reports the error message and the stack, and add a test that
proves a second registration adds no second listener.

Co-authored-by: Paperclip <noreply@paperclip.ing>
2026-09-04 01:14:47 +00:00
..