Skip to content

push/pull 网络请求无超时和重试机制 #14

@cunoe

Description

@cunoe

问题描述

src/commands/push.tssrc/commands/pull.ts 的 fetch 请求没有设置超时,也没有重试逻辑。

影响

  • 网络不好时命令可能永远挂起
  • 临时故障无法自动恢复

修复

  • 添加 AbortController 超时(如 30s)
  • 对 5xx 错误增加指数退避重试(最多 3 次)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium prioritybugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions