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), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
http