mirror of
https://github.com/apple/swift-nio
synced 2026-11-27 05:04:22 +00:00
Motivation The NIOHTTP1TestServer had a weird codepath where we could hit errors configuring the channel pipeline, but we weren't sure why. I've investigated, and this happens because a Channel that had been accepted earlier was closed while we were waiting to start handling it. This is totally benign: the code works just fine in that situation. To be clear, though, let's document the behaviour and add a test. Modifications - Code comment to explain the behaviour - Added a regression test Result More confidence.