Skip to content

TRACE v0.5.13

Choose a tag to compare

@peacezha peacezha released this 23 Oct 03:36

HPClaw v0.5.13 — 大文件传输不再中途失败 / Transfers survive session loss

中文

  • 修复大文件传输中途失败、只剩 .part 中间文件:实测数千条传输记录几乎全部死于 SSH session not found——传输几小时的过程中,SSH 会话被淘汰(登录第 9 个集群时杀掉最旧的)或断开后,传输引擎不会重连,直接判失败。现在:
    • 有活跃/暂停传输的集群会话不再被登录新集群淘汰;
    • SSH 断开后自动用保存的凭据重连,利用 .part 断点续传,不再整段报废;
    • "会话丢失/断连"类错误进入可重试名单,自动重试不再直接判死。
  • 续传提速:断点续传走的流式路径缓冲从 64KB 提到 512KB,每个网络往返搬运量提升 8 倍(此前只有全新传输才走并发通道,续传全是慢速单流)。
  • 顺带修复:暂停/取消与任务启动之间对活跃计数的重复扣减竞态(在改动暴露后修复)。

English

  • Fixed large transfers dying mid-flight and leaving only .part files: thousands of transfer records showed almost all failures were SSH session not found — hours-long transfers were killed when their session was evicted (logging into a 9th cluster killed the oldest) or dropped, with no reconnect. Now: sessions with active/paused transfers are never evicted; a dropped SSH session is automatically re-established with the stored credentials and the transfer resumes from the .part checkpoint; session-loss errors are retryable instead of fatal.
  • Faster resumes: the resume path's stream buffer goes from 64KB to 512KB (8x more data per network round trip) — previously only fresh transfers used the concurrent channel, resumes were all on the slow serial stream.
  • Also fixed a pre-existing double-decrement race of the active-task counter between pause/cancel and task start.

验证

  • 全量回归 243 个测试文件 / 1956 项通过(0 失败);tsc 无错。
  • 待真机验证:60GB 级文件数小时传输的会话保活与断点续传效果。