Skip to content

fix(mux-h2): frames on a stream Sōzu reset end the connection with GOAWAY(STREAM_CLOSED) #1783

Closed

Description

@FlorentinDUBOIS

After Sōzu sends RST_STREAM on an H2 stream, a frame the peer sent before reading that reset is treated as a protocol error: a HEADERS frame (for instance a trailer block) on the stream is answered GOAWAY(STREAM_CLOSED), which ends every other stream of the connection, and a DATA frame is answered with a second RST_STREAM(STREAM_CLOSED).

RFC 9113 §5.1: an endpoint MUST ignore frames that it receives on closed streams after it has sent a RST_STREAM frame. A HEADERS block on such a stream must still be decoded to keep the HPACK dynamic table in sync (§4.3), and DATA still counts toward connection flow control (§6.9).

Expected: these frames are ignored, for a bounded set of recently reset streams.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions