f251e69f51914cf0c7239a6a50de0e282309ded2
shutdown() awaited httpServer.close(), which waits for ALL open connections. A lingering WS/keep-alive socket left the process zombie forever after an uncaughtException (e.g. pg 'Connection terminated unexpectedly' to imrnes) — no exit, so systemd Restart=always could never revive it; /api/guilds returned 502 until manual restart. Add 10s force-exit timer in shutdown(); clear it on clean completion.
Description
Bete Discord moderation watcher
26 MiB
Languages
TypeScript
97.2%
Nix
0.9%
Shell
0.8%
CSS
0.7%
PLpgSQL
0.4%