mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-09-09 17:42:08 +08:00
- Configure upstream connection pool under antigravity.connection-pool with enabled: false by default. - In short connection mode, set MaxIdleConnsPerHost = -1 with DisableKeepAlives = false, ensuring immediate TCP termination after response body completion without leaking Connection: close request headers. - When pooling is explicitly enabled (enabled: true), cap idle-conn-timeout at 210s (leaving a 30s safety buffer below Google Frontend's 240s Keep-Alive cutoff) and default max-idle-conns-per-host to 2 (bounded at 100). - Refactor TransportCache to execute CloseIdleConnections outside the mutex lock during LRU eviction and matching closes. - Proactively evict and close idle connections on 429 quota exhaustion across Execute, ExecuteStream, and CountTokens. - Wire hot-reload diff detection and server reload purge hooks for graceful transport pool updates.