mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-24 04:38:00 +00:00
Motivation: In some cases it's possible for a stream to emit a WINDOW_UPDATE frame after receiving close from the network. This is unfortunate because in the eyes of the `NIOHTTP2Handler` the stream no longer exists which results in a connection-level error. Modifications: - Add a `close()` to the `InboundWindowManager`, no new frame sizes will be produced if close has been called - Use the above functionality when the stream is closing and when we have seen end stream. Result: WINDOW_UPDATE frames are no longer emitted from the stream as a result of delivering pending reads while closing.