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

fix(phoenix-channel): queue join message before others #4242

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

thomaseizinger
Copy link
Member

This was discovered as part of #4213. When we reconnect to the portal, we first need to join the correct room before sending any messages to it. For example, as a client, we need to join the client room before sending messages in it.

This implementation is meant to be a quick fix. The "proper" solution would be to keep track of which rooms we have joined and reset that upon reconnect. Introducing such a state machine is a much larger refactoring that is likely not going to make much of a difference for now because we only join a fixed number of rooms and that will usually succeed.

Copy link

vercel bot commented Mar 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
firezone ⬜️ Ignored (Inspect) Mar 21, 2024 1:12am

Copy link

Terraform Cloud Plan Output

Plan: 9 to add, 8 to change, 9 to destroy.

Terraform Cloud Plan

Copy link

Performance Test Results

TCP

Test Name Received/s Sent/s Retransmits
direct-tcp-client2server 226.6 MiB (+0%) 228.7 MiB (+0%) 345 (+92%)
direct-tcp-server2client 217.3 MiB (-5%) 218.7 MiB (-5%) 410 (+5%)
relayed-tcp-client2server 147.7 MiB (+1%) 148.4 MiB (+1%) 181 (+1%)
relayed-tcp-server2client 157.2 MiB (+5%) 157.6 MiB (+5%) 178 (+3%)

UDP

Test Name Total/s Jitter Lost
direct-udp-client2server 50.0 MiB (-0%) 0.04ms (+2%) 0.00% (NaN%)
direct-udp-server2client 50.0 MiB (-0%) 0.01ms (-5%) 0.00% (NaN%)
relayed-udp-client2server 50.0 MiB (0%) 0.09ms (-17%) 0.00% (NaN%)
relayed-udp-server2client 50.0 MiB (-0%) 0.03ms (-53%) 0.00% (NaN%)

@thomaseizinger thomaseizinger added this pull request to the merge queue Mar 21, 2024
Merged via the queue into main with commit 45d31e0 Mar 21, 2024
138 checks passed
@thomaseizinger thomaseizinger deleted the fix/phoenix-channel/prioritise-join branch March 21, 2024 02:29
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.

None yet

2 participants