Skip to content

Client transports report a failed send twice #1034

Description

@devcrocod

Client transports report a failed send twice
When send() fails, AbstractClientTransport calls onError and then rethrows. Protocol also passes exceptions it catches from send() to onError (for example, when a response to an incoming request can't be sent), so one failure reaches onError twice. On the request() path, the caller gets the exception and onError fires as well.

This affects every transport built on AbstractClientTransport: the Streamable HTTP, SSE and stdio client transports, and ChannelTransport.

ChannelTransportTest currently asserts both the callback and the exception, so it needs updating with the fix.

Activity

  1. added
    bug
    on Sep 29, 2026
  2. added theissue type on Sep 29, 2026
  3. added
    P3
    on Sep 29, 2026
  4. added this to the 0.20.0 milestone on Sep 30, 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

    P3bug

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions