quinn-rs / quinn

Async-friendly QUIC implementation in Rust
Apache License 2.0
3.57k stars 363 forks source link

Look up the time through trait Runtime #1839

Closed Ralith closed 1 month ago

Ralith commented 1 month ago

Allows end-to-end testing with a simulated flow of time, improving determinism and allowing extreme latencies to be modeled more easily. Inspired by @marcblanchet's multi-day experiments with simulated latencies for deep space networking.

marcblanchet commented 1 month ago

thanks a lot! (FYI, we have a running simulation with 5 days one-way delay. takes a month to get the results! so any improvement here would be so useful!

flub commented 1 month ago

Nice! This can probably also help with android sleep issues messing up timing.