mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-11-28 12:53:30 +08:00
- Delegate SOCKS5/SOCKS5H Transport.DialContext calls in BuildHTTPTransport through proxy.ContextDialer so caller deadlines and cancellation abort stalled dials and handshakes without adding a fixed dialer timeout. - Isolate Antigravity project-discovery HTTP/1.1 transports via newAntigravityProjectDiscoveryHTTPClient with deferred CloseIdleConnections so canceled credential acquisition cancels abandoned in-flight dials without affecting the shared pool. - Add SOCKS5/SOCKS5H cancellation, deadline, tunnel, and HTTP client regression tests verifying prompt request exit and peer socket closure. Closes: #7819