gristlabs_grist-core/app/gen-server
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
..
entity (core) Polish telemetry code 2023-06-09 13:03:10 -04:00
lib (core) tweak handler for aborted connections to work on modern node 2023-06-16 10:20:53 -04:00
migration (core) Add initial tutorials implementation 2023-03-22 10:09:02 -04:00
ApiServer.ts (core) Improve the look and behavior of /welcome/teams page (also shown for /welcome/start) 2023-06-13 20:40:59 -04:00
sqlUtils.ts (core) fix bug where sharing doc with everyone@ as viewer made it unlisted for site viewers 2021-10-28 12:48:31 -04:00