Skip to content

http: make `request.abort()` destroy the socket

request.abort() did not destroy the socket if it was called before a socket was assigned to the request and the request did not use an Agent or a Unix Domain Socket was used.

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

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

http

Merge request reports

Loading