hedgedoc/public/docs
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
..
features.md Features.md: Change tag explanation 2021-03-28 19:02:30 +02:00
privacy.md.example Replace CodiMD with HedgeDoc 2020-11-14 21:18:36 +01:00
release-notes.md Fix endless loop on shutdown when DB can't be reached 2021-08-14 23:47:26 +02:00
slide-example.md style: linting markdown files 2020-07-10 18:57:59 +02:00
yaml-metadata.md Replace CodiMD with HedgeDoc 2020-11-14 21:18:36 +01:00