Skip to content

Send messages to clients using async #169

@4e554c4c

Description

@4e554c4c

Currently sable uses tokio's mpsc UnboundedSender and UnboundedReceiver to queue messages to clients. These cannot block, but they can use an arbitrary amount of memory which isn't really desired. Ideally we would use a bounded mpsc Sender and Receiver that does not allocate.

For example, when sending an RPL_LIST using this framework, unless we yield then the entirety of the list body is placed into the sender buffer instead of being sent directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions