http: destroy the socket on parse error
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), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines