Files
hedgedoc-hedgeagent/public
Erik Michelson 801ef14b7e fix(shutdown): kill server after timeout when hanging on shutdown
When socket.io is not able to close a connection somehow, the code
never reaches the final shutdown state but keeps waiting for all
connections to be closed. This can cause a high CPU load on failing
shutdown. It is very unlikely to happen, except when the server is
shut down exactly at the same time a socket is disconnecting and not
already marked as disconnected. This change adds a fallback timer
which forcefully kills the server after a certain amount of time.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-12-03 19:52:52 +01:00
..
2020-11-14 21:18:36 +01:00
2020-11-15 20:12:39 +01:00
2016-11-14 16:45:57 +08:00
2020-11-17 11:13:58 +01:00