Skip to content

ADD RTL3d1 requiring channel state transitions to happen before the connected event#442

Merged
SimonWoolf merged 1 commit intomainfrom
rtl3d1-event-ordering
Mar 24, 2026
Merged

ADD RTL3d1 requiring channel state transitions to happen before the connected event#442
SimonWoolf merged 1 commit intomainfrom
rtl3d1-event-ordering

Conversation

@SimonWoolf
Copy link
Member

This ensures that when a connection listener observes the CONNECTED state, channels that were previously ATTACHED are already in the ATTACHING state. Without this ordering guarantee, a connection listener calling attach() on a channel per RTL4a would see the channel as ATTACHED and receive an immediate success callback without a server round-trip, potentially leading to operations (such as presence enter) being performed on a channel that in reality is not attached

…onnected event

This ensures that when a connection listener observes the `CONNECTED` state,
channels that were previously `ATTACHED` are already in the `ATTACHING`
state. Without this ordering guarantee, a connection listener calling
`attach()` on a channel per `RTL4a` would see the channel as `ATTACHED`
and receive an immediate success callback without a server round-trip,
potentially leading to operations (such as presence enter) being performed
on a channel that in reality is not attached
Copy link
Contributor

@ttypic ttypic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SimonWoolf SimonWoolf merged commit 1146171 into main Mar 24, 2026
2 checks passed
@SimonWoolf SimonWoolf deleted the rtl3d1-event-ordering branch March 24, 2026 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants