Files
gristlabs_grist-core/app/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
..
2022-09-29 18:02:09 +02:00
2023-06-09 13:03:10 -04:00
2023-01-26 09:47:14 +01:00
2022-02-19 09:46:49 +00:00
2022-02-19 09:46:49 +00:00
2022-07-04 10:42:40 -04:00
2022-06-17 21:53:20 +02:00
2023-02-20 22:46:36 -05:00
2022-07-04 10:42:40 -04:00
2023-04-03 13:29:35 -04:00
2022-07-04 10:42:40 -04:00
2020-07-21 20:39:10 -04:00
2023-05-23 15:50:15 -04:00
2022-04-01 15:24:19 -07:00
2022-07-04 10:42:40 -04:00
2020-07-21 20:39:10 -04:00
2022-08-25 12:38:36 -07:00