Improve idle connection management

This commit is contained in:
世界
2026-10-02 18:00:09 +08:00
parent eb7deeae8a
commit 07130365d1
37 changed files with 766 additions and 181 deletions
+4
View File
@@ -111,6 +111,10 @@ func (h *HTTPSTransportWrapper) Close() {
for _, trackedConn := range connections {
trackedConn.Conn.Close()
}
h.CloseIdleConnections()
}
func (h *HTTPSTransportWrapper) CloseIdleConnections() {
h.http2Transport.CloseIdleConnections()
h.httpTransport.CloseIdleConnections()
}