Repository navigation
fix(mobile): give up on an unanswered connection check after 10 s - #49
Merged
Merged
Conversation
When the saved desktop was unreachable and its packets were dropped (e.g. the desktop listens on a Tailscale address and the phone's Tailscale is not up yet), reopening the Android app stayed on "connecting" until the platform's TCP timeout, minutes on a phone, with no button to retry or pick another desktop. The session check now fails with TIMEOUT after 10 s, which leads to the offline page (retry / change desktop), and the connecting screen offers "change desktop" too. Closes #47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #47
验证结果:
pnpm check通过(shared 115、desktop 669 个测试;新增 2 个:无响应时session()以TIMEOUT失败、超时前返回正常会话)。pnpm e2e通过(34 passed,2 skipped)。未验证:真机上卡住的具体诱因(推测是桌面只监听 Tailscale 地址,而手机 Tailscale 未连上或正在重连),需要用新版 APK 在真机上确认。只改了网页代码,原生部分没动,不需要调
minVersionCode。