Skip to content

Restore transient connection boundary during connect handshake #2084

@sanity

Description

@sanity

Nacho highlighted in #2065 (comment) that PR 2065 merged the transient vs. accepted connection handling. In-transit sockets now look identical to established peers, so other operations could use them and they count against the steady connection pool.

To fix this we need to:

  1. Reintroduce an explicit boundary between transient connections (only valid for their connect operation) and the steady-state pool.
  2. Ensure transient sockets can be dropped without affecting ongoing ops, and that they never get exposed to other ops until the handshake completes.
  3. Add regression coverage so future refactors don’t collapse the layers again.

This complements (but is distinct from) issue #2075, which focuses on the broader adapter refactor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.1.38A-networkingArea: Networking, ring protocol, peer discoveryE-mediumExperience needed to fix/implement: Medium / intermediateP-highHigh priorityT-bugType: Something is broken

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions