mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-07 11:43:23 +08:00
The proxy stream circuit introduced in v0.1.164 (#4749) removes every account behind a quarantined proxy from scheduling. When all schedulable accounts share one proxy (a common deployment), two mid-stream disconnects within a minute zeroed out capacity for 10 minutes and every request failed with 502. One HTTP/2 connection loss also killed all multiplexed streams at once, tripping the threshold from a single event. - Quarantine now degrades to a preference: when the only reason no account is available is proxy quarantine, selection retries once with the quarantine bypassed, so capacity can never reach zero. - Disconnects within 3s per proxy collapse into one failure event. - Add gateway.openai_proxy_stream_circuit.disabled escape hatch. - A completed stream still clears the quarantine immediately; TTL, thresholds and recording guards are unchanged.