mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-23 04:34:24 +00:00
Motivation: We don't currently support ALTSVC and ORIGIN frames. At the moment when receiving or attempting to write these frames we trap. Trapping when receiving an unsupported frame can lead to DoS attacks. Moreover these frames are non critical so can safely be ignored. Modifications: - Forward inbound and outbound ALTSVC and ORIGIN frames to the connection state machine - The connection state machine now ignores inbound frames of this type - The connection state machine traps on outbound frames of this type (as per the current behaviour) - Document this behaviour on `HTTP2Frame.FramePayload` - Tests and fuzz testing failure case Result: We don't trap when receiving unsupported frames.