You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dee92d5
Browse filesBrowse the repository at this point in the historyBrowse files
fix(remote-connect): isolate host stream readers and recover live sync
- Give every host stream reader its own optional subscription_id lease. A
capable host echoes it and removes only that lease on unsubscribe, so a
retired reader's late cleanup no longer cancels its replacement. Readers
talking to older hosts skip cleanup and let the existing lease expire.
- Retry a failed live read on a timer with capped backoff instead of sleeping
inside the subscriber loop, also during older-page IO, and report recovery
with a live ready event that does not complete an unrelated history page.
- Tag desktop session events with a controller-local subscriptionId and mark
retryable sync errors so a stale reader cannot fail its successor.
- Install hint and reconnect listeners before the opening read in the shared
TS and KMP readers so a final hint during that read is not lost.
- HarmonyOS stream cleanup keeps the socket it opened, so closing after an
account switch cannot touch the new account's connection.
Copy file name to clipboardExpand all lines: src/apps/mobile/shared/core-protocol/src/commonMain/kotlin/com/openbitfun/mobile/core/protocol/RemoteCommand.kt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -106,4 +106,5 @@ public data class RemoteCommand(
Copy file name to clipboardExpand all lines: src/apps/mobile/shared/core-transport/src/commonMain/kotlin/com/openbitfun/mobile/core/transport/CloudAccountClient.kt
Copy file name to clipboardExpand all lines: src/apps/mobile/shared/core-transport/src/commonMain/kotlin/com/openbitfun/mobile/core/transport/HostStream.kt
Copy file name to clipboardExpand all lines: src/apps/mobile/shared/core-transport/src/commonTest/kotlin/com/openbitfun/mobile/core/transport/CloudAccountClientTest.kt
0 commit comments