hedgedoc/public
David Mehren b8c3703c2f
Fix endless loop on shutdown when DB can't be reached
The shutdown handler calls `checkAllNotesRevision` on a 100 ms
interval. If the database connection is broken, this will return
an error. Previously, this error was effectively ignored and resulted
in an endless loop printing out the error message every 100 ms.

This improves the error handling by terminating the process with a
nonzero exit code when an error was encountered 30 times. The loop
interval is also increased to 200 ms, giving the database 6 seconds
total time to recover in case of intermittent issues.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-08-14 23:47:26 +02:00
..
banner Replace CodiMD with HedgeDoc 2020-11-14 21:18:36 +01:00
css Improved CSS in night-mode 2021-01-28 12:30:47 +01:00
docs Fix endless loop on shutdown when DB can't be reached 2021-08-14 23:47:26 +02:00
fonts Remove uesless executable permission for static files 2016-11-14 21:13:02 +08:00
icons apply review suggestions 2020-11-15 20:12:39 +01:00
js Make anchor links base uri independent 2021-07-26 22:29:33 +02:00
uploads upload image to public/uploads 2016-11-14 16:45:57 +08:00
vendor Load abcjs from npm package 2021-06-07 20:59:37 +02:00
views Replace handlebars with string.replace 2021-06-11 09:29:26 +02:00
.eslintrc.js Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
default.md Removed unused note and set empty on default note, updated features note 2016-01-17 09:57:25 -06:00
screenshot.png Updated screenshot 2020-11-17 11:13:58 +01:00