github Kylin010/tcpfit v0.4.1

latest releases: v0.5.9, v0.5.8, v0.5.7...
3 months ago

升级

tcpfit update

新装:

bash <(curl -fsSL https://raw.githubusercontent.com/Kylin010/tcpfit/main/tcpfit.sh)

改动

锁被占时可以一键结束

上次运行异常退出(SSH 断线、被 kill、iperf3 卡住)时, 锁不会释放, 之后每次运行都会被挡住. 原先只说"等它结束再试", 遇到卡死的情况没有出路 —— 而且 bash <(curl ...) 起的进程命令行是 /dev/fd/63, 用 pkill -f tcpfit 根本找不到它.

现在会列出持有者和已运行时长, 并可以一键结束:

[!] 另一个 tcpfit 正在运行(锁: /var/lock/tcpfit.lock)
      持有者:
        PID 633546   已运行 02:15:33
      跑得太久多半是上次异常退出卡住了.

  结束它并继续? (y/N) [n]: y
[+] 已结束, 继续

先发 TERM 让对方的清理逻辑有机会跑完(恢复 qdisc、收掉 iperf3), 3 秒不退再 KILL. 默认是 n.

继承 v0.4.0

  • sweep 失败时不再应用上一次的限速值
  • Alpine / BusyBox 兼容(timeout --foreground、pkill -g 会自动降级)
  • "超出扫描范围" 不再被说成 "没有限速器"
  • verify 的重传判定改用丢包率

回滚

tcpfit rollback
tcpfit shape --off

Don't miss a new tcpfit release

NewReleases is sending notifications on new releases.