Skip to content

fix: realtime tenant limit handling#1667

Merged
edgurgel merged 4 commits intomainfrom
fix/realtime-channel-limit-update
Jan 20, 2026
Merged

fix: realtime tenant limit handling#1667
edgurgel merged 4 commits intomainfrom
fix/realtime-channel-limit-update

Conversation

@edgurgel
Copy link
Copy Markdown
Member

@edgurgel edgurgel commented Jan 5, 2026

What kind of change does this PR introduce?

Fix the way we check for connection and channel limit.

This PR changes so that we we simply use the tenant cache instead of keeping it stored as part of the socket assigns.

It also ensures that we only check for max concurrent users when it's the first time joining a channel. Once the transport pid has been tracked we don't check again.

@coveralls
Copy link
Copy Markdown

coveralls commented Jan 5, 2026

Coverage Status

coverage: 88.421% (+0.2%) from 88.243%
when pulling 6b80621 on fix/realtime-channel-limit-update
into 09e70f0 on main.

@edgurgel edgurgel requested a review from filipecabaco January 19, 2026 20:09
Using the cache when a RealtimeChannel is joined
instead of keeping it under UserSocket assigns
@edgurgel edgurgel force-pushed the fix/realtime-channel-limit-update branch from 95afb1d to 6b80621 Compare January 20, 2026 00:10
@edgurgel edgurgel merged commit f13d79d into main Jan 20, 2026
8 checks passed
@edgurgel edgurgel deleted the fix/realtime-channel-limit-update branch January 20, 2026 08:36
@kiwicopple
Copy link
Copy Markdown
Member

🎉 This PR is included in version 2.71.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants