Skip to content

http: destroy the socket on parse error

Rodrigo Muino Tomonari requested to merge github/fork/lpinca/gh-24586 into master

Destroy the socket if the 'clientError' event is emitted and there is no listener for it.

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

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Merge request reports

Loading