mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-26 04:57:50 +00:00
Motivation: When we hit a stream error on an outbound frame, we don't currently distinguish between them and channel errors. This makes it impossible for anyone to tell them apart. It also makes it impossible for the multiplexer to deliver these errors into the relevant stream channels that triggered them, making it essentially certain they'll be lost. Better diagnostics would be good, so we are providing them. Modifications: - Add new StreamError type that carries a stream ID and an underlying error. - Emit this StreamError type for outbound stream errors. - Deliver this StreamError type into the relevant child channels when possible. Result: Better diagnostics for stream errors.