Skip to content

Improve P2PStream buffering #12202

Open
Open
@mattsse

Description

@mattsse

Describe the feature

we currently have a buffer:

/// Outgoing messages buffered for sending to the underlying stream.
outgoing_messages: VecDeque<Bytes>,

TODO

  • remove buffer
  • update how pings are processed, because if we now go through the Sink API, then this must be stored as options that we optionally need to keep around
  • if we modify the poll logic in p2pstream then we also need to manually add a flush call at the callsite

also ptal at the Sink docs if unfamiliar with the Sink API

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementNew feature or requestS-needs-triageThis issue needs to be labelledS-staleThis issue/PR is stale and will close with no further activity

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions