mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
* test(caching): cover unclosed sessions from evicted azure and base64 embedding clients * fix(aiohttp_transport): keep the owned session out of a collected transport's garbage cycle An evicted OpenAI SDK client that became a reference cycle was freed by the cycle collector together with its transport, aiohttp session and connector. The transport's __del__ could only schedule an async close, so aiohttp's own finalizers reported the session and connector as unclosed. The transport now registers a weakref.finalize for the session it owns. The finalizer registry keeps the session out of the cyclic garbage and disposes it with the existing loop-aware close once the transport is freed. * fix(aiohttp_transport): type the session finalizer and cover the factory-built session path |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_aiohttp_cleanup_closed.py | ||
| test_aiohttp_handler.py | ||
| test_aiohttp_so_keepalive.py | ||
| test_aiohttp_transport.py | ||
| test_asgi_handler.py | ||
| test_async_client_cleanup.py | ||
| test_container_handler.py | ||
| test_credential_leak_prevention.py | ||
| test_gemini_session_leak.py | ||
| test_http2_connection_spread.py | ||
| test_http_handler.py | ||
| test_llm_http_handler.py | ||
| test_mock_transport.py | ||
| test_sse_lines.py | ||