Skip to content

http: remove stale timeout listeners

Checklist
  • make -j8 test (UNIX), or vcbuild 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

Merge request reports

Loading