http: emit 'close' when sockets are not constructed
OutgoingMessage#socket
is null
for such cases at all times.
Hence, we emit a 'close' event, imitating destroyImpl.destroy
,
without the socket operations.
Fixes: https://github.com/nodejs/node/issues/33653
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines