gristlabs_grist-core/app
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
..
client (core) Fix scrolling and column title bugs 2023-06-15 14:51:10 -04:00
common (core) Fix recording of signups, and record as telemetry too. 2023-06-15 00:15:18 -04:00
gen-server (core) tweak handler for aborted connections to work on modern node 2023-06-16 10:20:53 -04:00
plugin Use relative imports only in plugin folder (#328) 2022-10-26 10:41:38 -04:00
server (core) tweak handler for aborted connections to work on modern node 2023-06-16 10:20:53 -04:00
tsconfig.json (core) move home server into core 2020-07-21 20:39:10 -04:00