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 PR-URL: https://github.com/nodejs/node/pull/40244 Reviewed-By:Robert Nagy <ronagy@icloud.com> Reviewed-By:
James M Snell <jasnell@gmail.com>
parent
4f3eda66
Please register or sign in to comment