Skip to content

HTTP/2: keep the shutdown cause when failing stream entities #1502

Open

Description

@pjfanning

When an HTTP/2 connection shuts down, shutdownStreamHandling() closes every stream without being told why, and the stream entities are failed with the shared, cause-less Http2StreamHandling.ConnectionWasAbortedException singleton:

This drops the real reason, e.g. a cancellation cause, a completion timeout or a connection error, so applications can't tell from an entity failure why the connection went away.

Suggestion: pass the cause into shutdownStreamHandling and fail entities with a per-connection exception that wraps it. The client connection-failure test added in #1451 currently pins the singleton and would need to change.

Raised in the #1451 review: #1451 (review)

Activity

  1. added this to the 2.1.0 milestone on Nov 18, 2026
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions