mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-09-07 00:24:17 +08:00
- Use `context.AfterFunc` and buffered delivery in websocket relay sessions to avoid per-request goroutine leaks. - Synchronize in-flight puts and drain queued connections upon mux listener close. - Ensure home streaming log writer goroutines terminate cleanly when the log client is unhealthy. - Prevent integer arithmetic overflow in token breakdown validations and calculations. - Clone request headers in logging middleware to prevent concurrent mutation issues. - Implement standard `io.WriterTo` return signature for file body sources. Closes: #4709