Files
Nim/lib/pure
vercingetorx 9ed4077d9a Fix memory leak in asyncdispatch.withTimeout by clearing losing callbacks (#25567)
withTimeout currently leaves the “losing” callback installed:

  - when fut finishes first, timeout callback remains until timer fires,
- when timeout fires first, fut callback remains on the wrapped future.

Under high-throughput use with large future payloads, this retains
closures/future references longer than needed and causes large transient
RSS growth.
This patch clears the opposite callback immediately once outcome is
decided, reducing retention without changing API behavior.
2026-03-01 22:11:18 +01:00
..
2026-02-10 13:21:35 +01:00
2015-10-01 12:05:45 -07:00
2024-05-16 23:22:49 +02:00
2025-12-21 19:13:25 +01:00
2026-02-10 13:21:35 +01:00
2021-01-09 00:24:41 +01:00
2026-02-10 13:21:35 +01:00
2024-12-20 15:26:30 +01:00
2022-12-03 21:25:49 +08:00
2026-02-20 16:41:06 +01:00
2024-12-20 15:26:30 +01:00
2026-02-20 16:41:06 +01:00
2026-02-23 13:39:55 +01:00