mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-24 22:09:56 +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 |
||
|---|---|---|
| .. | ||
| response_cache_case.py | ||
| test_cache_max_messages.py | ||
| test_embedding_file_block_cache.py | ||
| test_evicted_client_closer_real_io.py | ||
| test_evicted_client_unclosed_sessions_real_io.py | ||
| test_in_memory_cache_heap_bound.py | ||
| test_prompt_cache_alert_streaks_real_io.py | ||
| test_redis_cache_non_tls_ssl_settings.py | ||
| test_response_cache_chaos.py | ||
| test_response_cache_empty_output.py | ||
| test_response_cache_large_payload_key.py | ||
| test_response_cache_model_group_key.py | ||
| test_response_cache_stream_replay.py | ||
| test_valkey_semantic_cache_real_io.py | ||