mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
4d9bbf6263
Summary: - Node has a strong recommendation to assume bad state and exit promptly on unhandled exceptions and rejections. We follow it, and only make an effort to clean up before exiting, and to log the error in a more standard way. - The only case seen in recent month of an unhandled rejection was for attempting to write overly large JSON to a Client websocket. Ensure that's handled, and add a test case that artificially reproduces this scenario. Test Plan: Added a test case for failing write to Client, and a test case that unhandled errors indeed kill the server but with an attempt at cleanup. Reviewers: georgegevoian Reviewed By: georgegevoian Differential Revision: https://phab.getgrist.com/D4124 |
||
---|---|---|
.. | ||
lib | ||
utils | ||
Comm.ts | ||
customUtil.ts | ||
docTools.ts | ||
generateInitialDocSql.ts | ||
gristClient.ts | ||
tcpForwarder.ts | ||
testUtils.ts | ||
wait.ts |