Skip to content

Replace anyio memory streams with a simpler transport abstraction #1735

Closed

Description

@maxisbey

Summary

Remove or replace the use of anyio memory streams (MemoryObjectSendStream / MemoryObjectReceiveStream) in the transport layer with something more straightforward.

Motivation

The current memory stream approach:

  • Swallows errors/exceptions in ways that are hard to debug
  • Adds complexity to the transport layer
  • Makes it difficult to trace message flow and understand failures

Goal

A simpler transport primitive that:

  • Propagates errors clearly
  • Is easier to reason about and debug
  • Reduces the conceptual overhead for contributors

Related


AI Disclaimer

Activity

  1. added
    enhancement
    P1
    v2
    breaking change
    on Dec 5, 2025
  2. maxisbey commented on Dec 8, 2025

    @maxisbey
    ContributorAuthor

    Closing as duplicate - consolidated into #1690. The shared Transport abstraction will replace anyio memory streams with simpler, error-propagating primitives.

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

    P1breaking changeenhancementv2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions