Skip to content

Mailbox runtime blocks the worker pool #89

Description

@oiwn

capp/src/manager/mailbox.rs currently gives each worker its own bounded mpsc inbox (default inbox_capacity = 1) and the dispatcher pushes envelopes via strict round-robin: next_worker = (next_worker + 1) % n. When the chosen worker is busy, inboxes[idx].send().await blocks indefinitely — even if the other workers are idle. Throughput collapses to the slowest worker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions