mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-25 04:47:50 +00:00
Motivation: All public parts of the Channel protocol, such as isActive, are required to be thread safe. Unfortunately, we missed a spot with the isActive bool on HTTP2StreamChannel. Modifications: Back the HTTP2StreamChannel.isActive bool with an atomic, and set it on state change. Result: Thread-safety for public readers of channel activity