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/D3923pull/550/head
parent
52469c5a7e
commit
7e50467396
Loading…
Reference in new issue