mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-30 05:28:45 +00:00
Motivation: Frames that close a stream may consume some of the connection window. We were not correctly accounting for that in the code, which meant that frames that carried END_STREAM would not notify the stream multiplexer that they had consumed connection window space. In the worst cases this could lead to resource starvation due to consumption of this window without causing us to emit new WINDOW_UPDATE frames. Modifications: StreamClosedEvents should be followed by flow control change events. Result: We will correctly update the connection window when a stream is closed.