http: remove default 'timeout' listener on upgrade
Remove the default listener of the 'timeout'
event from the socket before emitting the 'connect'
or 'upgrade'
event.
Fixes: https://github.com/nodejs/node/issues/23857
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines