mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-24 04:38:00 +00:00
Motivation: A recent change allowed stream creation to run immediately if the caller was on the correct event loop. Normally that's fine, however, it opens up a code path where streams can become activated twice which leads to a crash. Modifications: - Delay stream creation until the next loop tick - Add a loop tick to tests which now require it Result: Avoid re-entrantly activating streams twice.