Files
photoreport/apps/api/test
paula-alves 4a7dba5480
ci / rust (pull_request) Successful in 4m22s
ci / typescript (pull_request) Successful in 10m36s
fix(realtime): handle pg.Pool idle-client errors so admin-killed connections do not crash the worker (BIT-32447)
PostgreSQL error 57P01 (terminating connection due to administrator command)
is emitted as an 'error' event on the pg.Pool when an idle pooled client is
killed. Both attachRealtime (API) and createRemoteBroadcaster (ingest worker)
created pools without an 'error' listener, so Node treated it as an
uncaughtException and crashed the process. Add pool.on('error') handlers that
forward to onError (and skip noise during shutdown), mirroring the existing
client.on('error') reconnection logic.

Paperclip-Issue: BIT-32447
Paperclip-Cluster: 52b3174b839d
2026-11-18 17:19:03 +00:00
..