mirror of
https://github.com/apple/swift-nio
synced 2026-11-30 05:28:44 +00:00
Motivation: `testConnect` assumed that it can leave a little bit of time between registering a socket and connecting it for real (by stubbing out `connect`). That's true on Darwin but not on Linux, we may get ECONNRESET. Modifications: Hop to the EventLoop before registering to close the race. Result: - fixes #968