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
fix(rotation): delegate to original receive to prevent event loop starvation
Starlette 0.52+ with ASGI spec <2.4 spawns a listen_for_disconnect
task inside StreamingResponse that calls receive() in a loop. The old
_make_receive returned immediately on every call after the first,
causing an infinite busy-loop that starved the event loop and prevented
streaming responses from ever sending data.
Now delegates to the original ASGI receive after the buffered body is
consumed, which properly blocks until the client disconnects.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments