Skip to content

fix: 取消纯 HTTP 代理最小剩余时长门槛 - #2

Merged
shiaho777 merged 1 commit into
mainfrom
codex/http-proxy-min-ttl
Oct 21, 2026
Merged

shiaho777 merged 1 commit into
mainfrom
codex/http-proxy-min-ttl

Conversation

@shiaho777

@shiaho777 shiaho777 commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • 纯 HTTP 代理不再要求剩余时长至少 60 秒。已经提取、尚未过期的租约会进入代理池并用于提交。
  • 已经过期的地址仍然丢弃。
  • 版本升到 0.1.2(build 10102),对标官方 patch aca7b90。

Fixes #1

Test plan

  • 本地 ProxyPoolTests 通过,含 test_future_lease_is_kept_without_ttl_floor:剩余 5 秒的地址被取用,已过期的地址被跳过
  • CI job test(Build & Test)通过

已扣额度的随机 IP 只要尚未过期就继续使用。对标官方 aca7b90(#103),避免客户端 60 秒预留把可用 IP 丢掉。
@shiaho777
shiaho777 merged commit 0357e13 into main Oct 21, 2026
1 check passed
@shiaho777
shiaho777 deleted the codex/http-proxy-min-ttl branch October 21, 2026 10:02
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.

Unexpectedly dropping an IP address on the client side leads to a waste of quota.

1 participant