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 }}
Repository navigation
fix: review ASGI protocol bridge (run_coroutine_threadsafe) under load #17
oxyroute/asgi.py uses asyncio.run_coroutine_threadsafe and blocking fut.result() from sync response_* when native code calls into Python from a Tokio worker. Risk of deadlock under mixed load is documented; needs hardening.
Work
Reproduce with concurrent httpx requests. If deadlock appears, use a one-shot asyncio.Queue in the ASGI task to receive response actions without cross-thread result(), or an anyio / trio bridge.
Reopened after backlog review (2026-04-26): implementation is partial or the topic remains active (see .github/ISSUE_BACKLOG/bodies/017.md and PRIORITIES.md).
Context
asyncio.run_coroutine_threadsafeand blockingfut.result()from syncresponse_*when native code calls into Python from a Tokio worker. Risk of deadlock under mixed load is documented; needs hardening.Work
httpxrequests. If deadlock appears, use a one-shotasyncio.Queuein the ASGI task to receive response actions without cross-threadresult(), or ananyio/triobridge.Acceptance criteria
uvicornsubprocess smoke test.