Skip to content

http: use `autoDestroy: true` in incoming message

Enable the default autoDestroy: true option in IncomingMessage.

Refactor _http_client and _http_server to remove any manual destroying/closing of IncomingMessage. Refactor IncomingMessage destroy method to use the standard implementation of the stream module and move the abort logic inside of it.

Ref:

#30625 (closed)

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading