Closed
Description
Symptom:
Uncaught exception in test/index.ava.js
TypeError: Cannot read properties of null (reading 'finishShutdown')
finishShutdown(handle, errCode) {
// The shutdown request might already have been cancelled.
if (this[kCurrentShutdownRequest] === null)
return;
const req = this[kCurrentShutdownRequest];
this[kCurrentShutdownRequest] = null;
handle.finishShutdown(req, errCode); // `handle` is null
}
I think this means that we're shutting down the socket twice, but I'd argue that node should catch that and deal with it by firing an error or something, rather than crashing.
I've tried removing
Line 108 in fde1f8c
My current approach is to try to understand the actual flow well enough to create a small repro for the node team, then file a bug there.
Metadata
Metadata
Assignees
Labels
No labels