http: remove stale timeout listeners
Checklist
-
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
http
Description of change
In order to prevent a memory leak when using keep alive, ensure that the timeout listener for the request is removed when the response has ended.
This fixes https://github.com/nodejs/node/issues/9268