Skip to content

fix(updater): 代理池卡住时检查更新不再无响应,失败直连并写日志 - #60

Merged
GOXF merged 1 commit into
goxf/portablefrom
goxf/fix-updater-pool-timeout
Dec 3, 2026
Merged

GOXF merged 1 commit into
goxf/portablefrom
goxf/fix-updater-pool-timeout

Conversation

@GOXF

@GOXF GOXF commented Dec 3, 2026

Copy link
Copy Markdown
Owner

负责:Hark/GOXF

问题

测试通道收不到 dev.564d765:update.log 自 2026-12-02 12:40 北京起再无检查记录,点「检查更新」无任何提示。选代理池节点(updaterPoolProxy:解密、起 Mihomo)没有超时,代理池坏了就一直卡住,检查不返回;走直连的路径也不写日志。

改动

  • 选代理池节点限 4 秒,超时直接走系统网络并写日志(新文件 src/main/goxfTimeout.ts + 测试)。
  • 检查更新每条线路(代理池、直连)各自 12 秒,代理池耗尽不再吃掉直连的时间;下载、manifest 仍用调用方自己的信号,不受影响。
  • update.log 每次检查写一行(手动/自动、通道、fork/upstream 成败、推哪个版本),每条请求写线路和 HTTP 状态。

验证(云电脑)

  • npm run typecheck:退出码 0
  • npx vitest run src/main --exclude src/main/mcp/hub.test.ts:666 通过 / 3 跳过,退出码 0
  • npx electron-vite build:退出码 0
  • 离线复现:用真实 releases 列表 + 自身 dev.98fbb12,zip 版判断会推 dev.564d765,说明判断逻辑本身没问题。

未确认

  • 未真机验证。用户当前装的 98fbb12 本身就卡在检查这一步,这个修复它自动收不到,需要手动换一次完整包或补丁。

@GOXF

GOXF commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner Author

编译进度(提交 2a9e011,服务器每分钟自动更新,时间为北京时间)

  • ✅ 通过 CI:16:48(北京)编完,用时 5 分钟,原预计 16:48 日志

@GOXF
GOXF merged commit 4db2f8f into goxf/portable Dec 3, 2026
2 checks passed
@GOXF
GOXF deleted the goxf/fix-updater-pool-timeout branch December 3, 2026 08:56
GOXF added a commit that referenced this pull request Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant