gristlabs_grist-core/app/gen-server/lib
Paul Fitzpatrick 7e50467396 (core) tweak handler for aborted connections to work on modern node
Summary:
It became hard to detect aborted connections in node 16.
In node 14, req.on('close', ...) did the job. Thid diff adds a
work-around, until a better way is discovered or added.
Aborting a req will typically lead to 'close' being called
on the response, without writableFinished being set.

 - https://github.com/nodejs/node/issues/38924
 - https://github.com/nodejs/node/issues/40775

Test Plan:
existing DocApiForwarder test passes; manually
checking on various node versions.

Reviewers: JakubSerafin

Reviewed By: JakubSerafin

Differential Revision: https://phab.getgrist.com/D3923
2023-06-16 10:20:53 -04:00
..
Activations.ts (core) upgrade typeorm so we can support newer postgres 2022-09-02 15:34:21 -04:00
DocApiForwarder.ts (core) tweak handler for aborted connections to work on modern node 2023-06-16 10:20:53 -04:00
DocWorkerMap.ts (core) Add unquarantine command to admin CLI 2022-08-15 13:04:55 -07:00
Doom.ts (core) add a tool for deleting a user 2021-09-29 12:08:23 -04:00
HomeDBManager.ts (core) Add optional telemetry to grist-core 2023-06-07 12:00:51 -04:00
Housekeeper.ts (core) Add optional telemetry to grist-core 2023-06-07 12:00:51 -04:00
Permissions.ts (core) move home server into core 2020-07-21 20:39:10 -04:00
scrubUserFromOrg.ts (core) move home server into core 2020-07-21 20:39:10 -04:00
TypeORMPatches.ts (core) Faster builds all around. 2022-07-04 10:42:40 -04:00
Usage.ts (core) Faster builds all around. 2022-07-04 10:42:40 -04:00
values.ts (core) move home server into core 2020-07-21 20:39:10 -04:00