Files
Nim/lib
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
..
2017-02-20 17:24:19 +02:00
2026-02-20 16:41:06 +01:00
2026-02-24 11:12:28 +01:00
2013-03-16 23:53:07 +01:00
2021-06-03 14:00:53 +02:00
2026-02-23 13:39:55 +01:00