mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-24 04:38:00 +00:00
Motivation: RFC 7540 Section 6.9: "WINDOW_UPDATE can be sent by a peer that has sent a frame bearing the END_STREAM flag. This means that a receiver could receive a WINDOW_UPDATE frame on a "half-closed (remote)" or "closed" stream. A receiver MUST NOT treat this as an error (see Section 5.1)." Previously WINDOW_UPDATE frames received in this state would be treated as an error. Modifications: - Allow frames to be ignored if they are for a stream which has been closed. - Add a test to verify WINDOW_UPDATE on a closed stream. - Update tests which relied on a stream error in this case. Result: More compliant code.