Closed nazar-pc closed 3 months ago
Hi. I believe it has be fixed in 1.38.0
. Please see https://github.com/tokio-rs/tokio/releases/tag/tokio-1.38.0 and https://github.com/tokio-rs/tokio/pull/6487.
Indeed, what a coincidence, thanks!
But there is still a possibility that 1.38.0 may panic, it eventually fixed in https://github.com/tokio-rs/tokio/pull/6612.
Version 1.37.0
Platform Ubuntu x86-64 with 6.9.4 kernel
Description Tokio timers do not handle overflow gracefully, I hit this multiple times already so decided to finally report it upstream.
I tried this code:
I expected to see this happen: effectively timer is idle indefinitely.
Instead, this happened:
Instant + Duration
should be saturating to prevent this issue.