Skip to content

Control-plane sub/unsub clone in stream loop #1387

@muscariello

Description

@muscariello

File: core/datapath/src/message_processing.rsprocess_stream() (L985)

Problem:

let _ = txcp.send(Ok(msg.clone())).await;

Every remote subscribe/unsubscribe message is cloned before forwarding to the
control-plane channel, even though the original msg is consumed immediately
after.

Mitigation plan:
Send the original message to the control plane and reconstruct (or skip) the
local processing copy, or clone only the small header fields needed by the
control plane.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions