Skip to content

Better internal message switching #213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Better internal message switching #213

wants to merge 7 commits into from

Conversation

muhamadazmy
Copy link
Member

The refactoring mainly tries to avoid worker getting blocked on slow clients and also avoid holding a global lock.

This does not solve everything. I will make sure to leave some TODOs to be picked up by the team.

- Add todos that need to be processed
- Rename some structs
- Handle callback errors (drop the connection from worker connections subset)
- Separate worker to its own strcture
- Use cancellation token to track if either of reader or writer routines exited
  and make sure connection is removed from global sessions set
sameh-farouk
sameh-farouk previously approved these changes Apr 15, 2025
Also run cargo clippy to clean up all warnings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants