Skip to content

mux-h2: stream-scoped errors close the whole connection #1751

Closed

Description

@FlorentinDUBOIS

The H2 mux answers several stream-scoped errors with GOAWAY, which closes the connection and every in-flight stream on it, where RFC 9113 calls for a stream error (RST_STREAM) or for ignoring the frame:

  • DATA or HEADERS on a half-closed (remote) stream: stream error STREAM_CLOSED (RFC 9113 §5.1).
  • HEADERS without END_STREAM after the request or response header section (malformed message): stream error PROTOCOL_ERROR (RFC 9113 §8.1, §8.1.1).
  • Frames received on a stream after sending RST_STREAM on it: ignored after minimal processing (RFC 9113 §5.1). DATA currently draws a second RST_STREAM, HEADERS a GOAWAY(STREAM_CLOSED).
  • PRIORITY frame with a length other than 5: stream error FRAME_SIZE_ERROR (RFC 9113 §6.3).

Activity

  1. added a commit that references this issue on Oct 2, 2026
    5e200c0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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