mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
526a5df157
Summary: - Implements MemoryPool for waiting on memory reservations. - Uses MemoryPool to control memory used for stringifying JSON responses in Client.ts - Limits total size of _missedMessages that may be queued for a particular client. - Upgrades ws library, which may reduce memory usage, and allows pausing the websocket for testing. - The upgrade changed subtle behavior corners, requiring various fixes to code and tests. - dos.ts: - Includes Paul's fixes and updates to the dos.ts script for manual stress-testing. - Logging tweaks, to avoid excessive dumps on uncaughtError, and include timestamps. Test Plan: - Includes a test that measures heap size, and fails without memory management. - Includes a unittest for MemoryPool - Some cleanup and additions to TestServer helper; in particular adds makeUserApi() helper used in multiple tests. - Some fixes related to ws upgrade. Reviewers: paulfitz Reviewed By: paulfitz Differential Revision: https://phab.getgrist.com/D3974 |
||
---|---|---|
.. | ||
client | ||
client-harness | ||
common | ||
deployment | ||
fixtures | ||
formula-dataset | ||
gen-server | ||
nbrowser | ||
server | ||
timings | ||
.eslintrc.js | ||
chai-as-promised.js | ||
declarations.d.ts | ||
init-mocha-webdriver.js | ||
mocha.opts | ||
report-why-tests-hang.js | ||
setupPaths.js | ||
split-tests.js | ||
test_under_docker.sh | ||
testUtils.ts | ||
tsconfig.json | ||
upgradeDocument | ||
upgradeDocumentImpl.ts | ||
utils.js | ||
xunit-file.js |