You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 31, 2026. It is now read-only.
fix(sessions): resolve async deadlock in multiplexed session manager (#1520)
This PR resolves a critical deadlock issue when acquiring or maintaining
a multiplexed session asynchronously.
The bug occurs because DatabaseSessionsManager previously used a
synchronous threading.Lock around self._get_multiplexed_session() and
_maintain_multiplexed_session(). When a thread attempts to await the
multiplexed session creation (return await ...) while holding a
synchronous thread lock, the entire asyncio event loop becomes blocked
for any other coroutine trying to access the lock.
0 commit comments