Skip to content

vllm.distributed.ec_transfer.ec_connector.cpu.control.base

Abstract base classes for the EC control plane.

ControlConnection wraps a single peer channel (one DEALER socket).

Classes:

ControlConnection

Bases: ABC

Bidirectional message channel to a single remote peer.

All I/O is non-blocking: send enqueues without blocking; recv drains all buffered inbound messages since the last call.

Methods:

  • close –

    Release all resources. Idempotent.

  • mark_dead –

    Signal that the peer disconnected. Sets alive to False.

  • recv –

    Drain and return all buffered inbound messages.

  • send –

    Enqueue msg for delivery. Must not block.

Attributes:

  • alive (bool) –

    True if the connection is still usable.

alive abstractmethod property

True if the connection is still usable.

close() abstractmethod

Release all resources. Idempotent.

mark_dead() abstractmethod

Signal that the peer disconnected. Sets alive to False.

recv() abstractmethod

Drain and return all buffered inbound messages.

send(msg) abstractmethod

Enqueue msg for delivery. Must not block.