-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
B-upstreamBlocked: needs a change in a dependency or the compiler.Blocked: needs a change in a dependency or the compiler.C-bugCategory: bug. Something is wrong. This is bad!Category: bug. Something is wrong. This is bad!
Description
Version
hyper-util v0.1.10 (latest)
Platform
x86_64 GNU/Linux
Description
std::Instant
has incorrect behavior after system sleep, see rust-lang/rust#79462
This will break some duration calculations, e.g. hyper-util client connection pool won't clean expired connections after system sleep because the new Instant::now
is incorrect and the calculated duration is shorter than the actual one. See https://github.com/hyperium/hyper-util/blob/dce81a0cbae0dd989caab74b83be953e75c5cfb1/src/client/legacy/pool.rs#L760
Using https://github.com/DXist/boot-time/ or calling libc to get a time directly may solve this.
Metadata
Metadata
Assignees
Labels
B-upstreamBlocked: needs a change in a dependency or the compiler.Blocked: needs a change in a dependency or the compiler.C-bugCategory: bug. Something is wrong. This is bad!Category: bug. Something is wrong. This is bad!