Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
at __node_internal_captureLargerStackTrace (node:internal/errors:490:5)
at new NodeError (node:internal/errors:399:5)
at write_ (node:_http_outgoing:880:11)
at ServerResponse.write (node:_http_outgoing:831:15)
}
Maybe a fix for this:
convert this
writableFromUser.write(chunk, encoding, callback)
into this
if (!writableFromUser.destroyed) {
writableFromUser.write(chunk, encoding, callback)
}
If this is a bug, I like to open PR for this issue
18.16.0
Mac
v8
pnpm i
pnpm tsx ./server.tsx
pnpm tsx ./request.ts
andCTRL+C
.Will throw this error:
Maybe a fix for this:
convert this
into this
If this is a bug, I like to open PR for this issue