Describe the bug
If a response body stream is aborted or errors, the node response stream should be destroyed and the socket closed. Currently an error in the response body stream results in an unhandled error and does not close the socket.
To Reproduce Steps to reproduce the behavior:
Abort or create an error in a stream that has been sent as a response body when using the node handler.
Expected behavior
The reponse stream should be closed and the client should see and RST ECONNRESET.
Environment:
- OS: MacOS
@whatwg-node/server
- NodeJS: v22.20.0
Additional context
Describe the bug
If a response body stream is aborted or errors, the node response stream should be destroyed and the socket closed. Currently an error in the response body stream results in an unhandled error and does not close the socket.
To Reproduce Steps to reproduce the behavior:
Abort or create an error in a stream that has been sent as a response body when using the node handler.
Expected behavior
The reponse stream should be closed and the client should see and RST ECONNRESET.
Environment:
@whatwg-node/serverAdditional context