Files
node/lib
Tim Perry 24280308dc http: fix leaked error listener on sync HTTP req create + destroy
Previously, this resulted in an error listener being added but not
cleaned up when the socket was freed back to the agent pool.

This also updates the docs to clarify when req.destroy() kills the
underlying socket - only if it's called during request processing (more
specifically: after onSocketNT, at which point we may have started
reading & writing).

Signed-off-by: Tim Perry <pimterry@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/62872
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
2026-04-24 10:21:54 +00:00
..
2020-02-18 22:15:50 -08:00
2020-10-21 01:26:34 +02:00
2026-04-04 19:37:53 +00:00
2026-04-11 19:24:50 +00:00
2026-04-05 10:12:21 +00:00
2026-04-19 18:39:01 +00:00
2024-01-12 16:09:48 +00:00
2025-12-10 16:12:28 +00:00
2025-12-22 16:14:46 +00:00
2024-10-09 06:42:16 +00:00
2026-03-26 05:55:01 +00:00
2025-09-04 11:58:50 +00:00
2026-02-21 16:30:23 +00:00
2026-04-01 10:09:41 +00:00
2026-04-09 15:01:51 -04:00
2026-04-09 14:26:14 +00:00
2025-08-05 13:45:41 +00:00