Skip to content

http: emit 'close' when sockets are not constructed

Rodrigo Muino Tomonari requested to merge github/fork/rexagod/i-33653 into master

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), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading