Skip to content

http: remove 'data' and 'end' listener if client parser error

There might be the case of some more data coming through after the parser has returned an error and we have destroyed the socket. We should also be removing the 'data' event handler.

Fixes: https://github.com/nodejs/node/issues/40242

Merge request reports

Loading