Skip to content
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

client_listener: Explicitly queue outgoing messages to guarantee order (take 2) #29

Merged
merged 1 commit into from
Aug 26, 2023

Conversation

progval
Copy link
Contributor

@progval progval commented Aug 26, 2023

Spawning a task on each event to send implicitly used tokio as an unbounded queue that doesn't actually preserve order.

This could cause issues, such as ConnectionData being sent after the first message, which violates assumptions down the line.

This replaces #28 but avoids re-creating the original deadlock by creating a new task with its own loop.

Spawning a task on each event to send implicitly used tokio as an unbounded
queue that doesn't actually preserve order.

This could cause issues, such as ConnectionData being sent after the first
message, which violates assumptions down the line.
@spb spb merged commit 452d6b4 into Libera-Chat:master Aug 26, 2023
2 checks passed
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