You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] proxy_pool.rebindAccounts rebinds accounts serially behind blocking AcquireAccount, causing head-of-line blocking when a proxy dies #35
When a proxy in PROXY_POOL becomes unavailable, runtimeAdmin.rebindAccounts (internal/app/proxy_pool.go:94-120) rebinds all affected accounts sequentially inside a single goroutine, calling blocking admin.pool.AcquireAccount(admin.lifecycle, accountID) on each account one by one.
Failure Scenario
30 accounts are bound to proxy_a.
proxy_a dies while account_1 has an active request stuck waiting on TCP/response timeout (up to REQUEST_TIMEOUT = 30m).
reportProxyFailure or probeProxies calls rebindAccounts([account_1, account_2, ..., account_30]).
rebindAccount(admin.lifecycle, "account_1") blocks inside AcquireAccount waiting for account_1's active lease to finish.
account_2 through account_30 are completely idle, yet their workers and HTTP clients stay bound to the dead proxy_a for up to 30 minutes until account_1 finally unblocks.
Rebind affected accounts concurrently (e.g., bounded worker pool or one goroutine per account, since AcquireAccount is already per-account) so one busy/stalled account on a dead proxy never delays rebinding all other idle accounts.
Activity
Mag1cFall commentedon Nov 22, 2026
Fixed in v0.3.14, proxy failover now rebinds accounts concurrently so idle accounts move over right away instead of waiting behind busy ones.