-
Notifications
You must be signed in to change notification settings - Fork 41
[ECO-5246] fix: Realtime Client Reconnection Logic #1077
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
Conversation
WalkthroughThe changes involve the removal of a listener in the Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant ConnManager as ConnectionManager
participant Channel as ChannelBase
Client->>ConnManager: Initiate reconnection
ConnManager->>Channel: Check previous connection state
alt State was closing
ConnManager->>Channel: setConnectionClosed(REASON_CLOSED)
end
alt State was closed/failed
ConnManager->>Channel: setReinitialized()
end
Channel-->>ConnManager: Channel reset confirmed
ConnManager-->>Client: Connection reestablished
Assessment against linked issues
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
💤 Files with no reviewable changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (8)
🔇 Additional comments (6)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
5c5ac46 to
aa88969
Compare
aa88969 to
2ec29e7
Compare
|
Not sure why tests are failing |
2ec29e7 to
58c7179
Compare
58c7179 to
841c69e
Compare
lib/src/test/java/io/ably/lib/test/realtime/RealtimeChannelTest.java
Outdated
Show resolved
Hide resolved
sacOO7
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Previously, we cleared all channels on the close event, causing all previously acquired channels to become orphaned. We have now removed this logic and fixed the reconnection behavior to align with the spec
841c69e to
ef11880
Compare
Resolves #1074
Previously, we cleared all channels on the close event, causing all previously acquired channels to become orphaned. We have now removed this logic and fixed the reconnection behavior to align with the spec
Summary by CodeRabbit
Summary by CodeRabbit
Refactor
New Features
Tests