mirror of
https://github.com/apple/swift-nio
synced 2026-11-26 04:57:49 +00:00
Motivation: The HappyEyeballs state machine incorrectly assumed that it would always be able to cancel any scheduled task that would execute on the event loop that the state machine itself was running on. This is not accurate: if the scheduled task is scheduled to execute at roughly the same time as another callback into the state machine then it may be uncancellable. Modifications: Allowed the three scheduled tasks (connect timeout, connect delay, and resolver delay) to fire in completed. Result: No fatalErrors in window conditions under high load