Skip to content

Conversation

@cmaglie
Copy link
Member

@cmaglie cmaglie commented Nov 27, 2025

Motivation

Fix #15

Change description

This change mainly affects the msgpackrpc library, where the read-loop runs and spawns "worker" goroutines.
To effectively pause reading from a client, we need to limit the number of parallel workers for each client, and this is what this PR does.

Additional Notes

Reviewer checklist

  • PR addresses a single concern.
  • PR title and description are properly filled.
  • Changes will be merged in main.
  • Changes are covered by tests.
  • Logging is meaningful in case of troubleshooting.

Also added a placeholder on the msgpackrouter constructor to specify the
desired queue size (it will be implemented later).
@cmaglie cmaglie requested a review from a team November 27, 2025 13:55
@cmaglie cmaglie self-assigned this Nov 27, 2025
@cmaglie cmaglie added the enhancement New feature or request label Nov 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add control flow to not starve the message forwarder

1 participant